You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove Map#getLayer(), so that we can guarantee that all style mutations flow through setState. (Alternatively, Map#getLayer() could be changed to return a serialized version of StyleLayer instead of the class instance.)
This should bring Style's internally-public API down to { setState: (partialState: obj) => void, update: (options: obj) => void }, where setState queues a state change and update applies all queued state changes.
The text was updated successfully, but these errors were encountered:
Change each of the following
Map
methods to delegate toStyle#setState
:Style#setState
#3649 or cause a temporary perf regression until 3649 is completed.)Additionally:
Style
methods _private.Map#getLayer()
, so that we can guarantee that all style mutations flow throughsetState
. (Alternatively,Map#getLayer()
could be changed to return a serialized version of StyleLayer instead of the class instance.)This should bring Style's internally-public API down to
{ setState: (partialState: obj) => void, update: (options: obj) => void }
, wheresetState
queues a state change andupdate
applies all queued state changes.The text was updated successfully, but these errors were encountered: