data
event from style mutations should be fired synchronously
#5762
Labels
data
event from style mutations should be fired synchronously
#5762
Currently, if you mutate the style via
setPaintProperty
or some other runtime styling API, the correspondingdata
event (withdataType
property equal tostyle
) is not fired until the subsequent repaint, which is asynchronous. I think this event should be fired immediately instead:getPaintProperty
or comparable accessor immediately, and it seems like the event should fire as soon as the change becomes observable.Map
will use thedata
event as the consistent trigger for a new frame, rather than wrapping eachStyle
method and calling_update(true)
manually._update(true)
, and a second one from thedata
event that's triggered during the first repaint.The text was updated successfully, but these errors were encountered: