Class MapUtils
-
- All Implemented Interfaces:
public final class MapUtilsUtils class useful for performing map operations such as adding sources, layers, and more.
-
-
Method Summary
Modifier and Type Method Description static voidaddLayerToMap(@NonNull() Style style, @NonNull() Layer layer, @Nullable() String idBelowLayer)Generic method for adding layers to the map. static voidaddLayerToMapAbove(@NonNull() Style style, @NonNull() Layer layer, @Nullable() String idAboveLayer)Generic method for adding a new layer to the map that's above another specific layer.
-
-
-
Method Detail
-
addLayerToMap
static void addLayerToMap(@NonNull() Style style, @NonNull() Layer layer, @Nullable() String idBelowLayer)
Generic method for adding layers to the map.
- Parameters:
style- that the current mapView is usinglayer- a layer that will be added to the mapidBelowLayer- optionally providing the layer which the new layer should be placed below
-
addLayerToMapAbove
static void addLayerToMapAbove(@NonNull() Style style, @NonNull() Layer layer, @Nullable() String idAboveLayer)
Generic method for adding a new layer to the map that's above another specific layer.
- Parameters:
style- that the current mapView is usinglayer- a layer that will be added to the mapidAboveLayer- optionally providing the layer which the new layer should be placed above
-
-