VectorTileLayer - update style
This sample shows how to update style layers in the current style of a VectorTileLayer.
At version 4.18, we introduced the following methods on VectorTileLayer that will get and set the various properties of style layers in the VectorTileLayer's currentStyleInfo.style. These methods can be used in 2D MapView without having to reload the entire VectorTileLayer.
- getStyleLayer(layerName) - returns a JSON object representing the style layer from the style.
- setStyleLayer(styleLayer) - lets you change properties of a specified style layer, add a new style layer, or reorder existing style layers in the style.
- deleteStyleLayer(layerName) - deletes a style layer in the style.
- setStyleLayerVisibility(layerName, visibility) - toggles the visibility of a given style layer in the style.