StyleLayer extension

Extension for StyleManager to add/update/get layers from the current style.

on

Methods

addLayer(Layer layer) Future<void>
Add a layer the the current style.
addLayerAt(Layer layer, LayerPosition position) Future<void>
Add a layer to the current style in a specific position.
getLayer(String layerId) Future<Layer?>
Get a previously added layer from the current style.
updateLayer(Layer layer) Future<void>
Update an existing layer in the style.