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
Currently, map.getLayer() returns a StyleLayer object, which has methods like setPaintProperty, etc. This is misleading, because StyleLayer's setters are not intended to be user-facing: to work properly, they depend on being called as part of the batch updating flow that's managed by the Style object.
I think it would be clearer to just return a serialized version of the layer from map.getLayer().
The text was updated successfully, but these errors were encountered:
Currently,
map.getLayer()
returns aStyleLayer
object, which has methods likesetPaintProperty
, etc. This is misleading, becauseStyleLayer
's setters are not intended to be user-facing: to work properly, they depend on being called as part of the batch updating flow that's managed by theStyle
object.I think it would be clearer to just return a serialized version of the layer from
map.getLayer()
.The text was updated successfully, but these errors were encountered: