Class MapUtils

  • All Implemented Interfaces:

    
    public final class MapUtils
    
                        

    Utils class useful for performing map operations such as adding sources, layers, and more.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static void addLayerToMap(@NonNull() Style style, @NonNull() Layer layer, @Nullable() String idBelowLayer) Generic method for adding layers to the map.
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 using
        layer - a layer that will be added to the map
        idBelowLayer - 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 using
        layer - a layer that will be added to the map
        idAboveLayer - optionally providing the layer which the new layer should be placed above