Class MapLayer

java.lang.Object
com.here.NativeBase
com.here.sdk.mapview.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 Details

    • 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.