Is it possible change a myLayer.style inside myLayer.states.add 'stateA', ?Because if I write as I would when creating a new layer it shows me some errors.
No, the state machine only accepts direct layer properties. What are you trying to switch between?
font-weight.I wanted a text to be bold when scale:1 and light when scaled-down.
Hey Alejandro, did you ever figure out how to change the text? I'm struggling with this too
You could change the font weight based on the current state of your layer: