addPersistentStyleLayer method
- String properties,
- LayerPosition? layerPosition
Adds a persistent style layer from a JSON properties string. Persistent layers survive style reloads when the new style does not redefine the same layer id. Prefer the typed addPersistentLayer helpers for facade layer classes.
Note: web has no persistent-layer concept in gl-js; the layer is added as a regular layer and will not survive a style reload.
Implementation
Future<void> addPersistentStyleLayer(
String properties,
LayerPosition? layerPosition,
) => _impl.addPersistentStyleLayer(properties, layerPosition);