java.lang.Object
com.trimblemaps.mapsdk.style.layers.Layer
Direct Known Subclasses:
BackgroundLayer, CircleLayer, CustomLayer, FillExtrusionLayer, FillLayer, HeatmapLayer, HillshadeLayer, LineLayer, RasterLayer, SymbolLayer

public abstract class Layer extends Object
Base class for the different Layer types
  • Constructor Details

    • Layer

      protected Layer(long nativePtr)
    • Layer

      public Layer()
  • Method Details

    • checkThread

      protected void checkThread()
      Validates if layer interaction is happening on the UI thread
    • setProperties

      public void setProperties(@NonNull PropertyValue<?>... properties)
    • getId

      @NonNull public String getId()
    • getVisibility

      @NonNull public PropertyValue<String> getVisibility()
    • getMinZoom

      public float getMinZoom()
    • getMaxZoom

      public float getMaxZoom()
    • setMinZoom

      public void setMinZoom(float zoom)
    • setMaxZoom

      public void setMaxZoom(float zoom)
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable
    • nativeGetId

      @NonNull protected String nativeGetId()
    • nativeGetVisibility

      @NonNull protected Object nativeGetVisibility()
    • nativeSetLayoutProperty

      protected void nativeSetLayoutProperty(String name, Object value)
    • nativeSetPaintProperty

      protected void nativeSetPaintProperty(String name, Object value)
    • nativeSetFilter

      protected void nativeSetFilter(Object[] filter)
    • nativeGetFilter

      @Nullable protected com.google.gson.JsonElement nativeGetFilter()
    • nativeSetSourceLayer

      protected void nativeSetSourceLayer(String sourceLayer)
    • nativeGetSourceLayer

      @NonNull protected String nativeGetSourceLayer()
    • nativeGetSourceId

      @NonNull protected String nativeGetSourceId()
    • nativeGetMinZoom

      protected float nativeGetMinZoom()
    • nativeGetMaxZoom

      protected float nativeGetMaxZoom()
    • nativeSetMinZoom

      protected void nativeSetMinZoom(float zoom)
    • nativeSetMaxZoom

      protected void nativeSetMaxZoom(float zoom)
    • getNativePtr

      public long getNativePtr()
    • setDetached

      public void setDetached()
    • isDetached

      public boolean isDetached()