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
addLayer with an inline source will mutate the argument, replacing the source object with the layer's id. Runtime styling APIs should never mutate their input, as users may want to reuse the input, or otherwise expect it not to change outside their control.
var source = { ... };
var layer = { ..., source: source };
map.addLayer(layer);
assert(source === layer.source); // should pass
The text was updated successfully, but these errors were encountered:
addLayer
with an inline source will mutate the argument, replacing the source object with the layer'sid
. Runtime styling APIs should never mutate their input, as users may want to reuse the input, or otherwise expect it not to change outside their control.The text was updated successfully, but these errors were encountered: