Class MapLayer


  • public final class MapLayer
    extends NativeBase

    Interface for managing a map layer. A map layer can be created by using the MapLayerBuilder. At creation, the layer gets added to a map. The layer gets removed from the map upon instance destruction.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()
      Frees all internally used resources.
      void setEnabled​(boolean enable)
      Sets whether or not the layer is enabled to be drawn.
      void setPriority​(MapLayerPriority priority)
      Sets the render priority for the layer which replaces any previously defined priorities.
      void setStyle​(Style style)
      Sets the style to be used by the layer.
      • Methods inherited from class java.lang.Object

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

      • setEnabled

        public void setEnabled​(boolean enable)

        Sets whether or not the layer is enabled to be drawn.

        Parameters:
        enable -

        True to enable the layer, false to disable it.

      • setStyle

        public void setStyle​(@NonNull
                             Style style)

        Sets the style to be used by the layer. For more details see Custom Layer Style Reference in the documentation. Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.

        Parameters:
        style -

        Style for the layer.

      • setPriority

        public void setPriority​(@NonNull
                                MapLayerPriority priority)

        Sets the render priority for the layer which replaces any previously defined priorities.

        Parameters:
        priority -

        Priority for the layer.

      • destroy

        public void destroy()

        Frees all internally used resources. After calling this method, the object is not usable anymore.