Class HillshadeLayer

java.lang.Object
com.trimblemaps.mapsdk.style.layers.Layer
com.trimblemaps.mapsdk.style.layers.HillshadeLayer

@UiThread public class HillshadeLayer extends Layer
Client-side hillshading visualization based on DEM data. Currently, the implementation only supports Mapbox Terrain RGB and Mapzen Terrarium tiles.
  • Constructor Details

    • HillshadeLayer

      public HillshadeLayer(String layerId, String sourceId)
      Creates a HillshadeLayer.
      Parameters:
      layerId - the id of the layer
      sourceId - the id of the source
  • Method Details

    • initialize

      protected void initialize(String layerId, String sourceId)
    • setSourceLayer

      public void setSourceLayer(String sourceLayer)
      Set the source layer.
      Parameters:
      sourceLayer - the source layer to set
    • withSourceLayer

      @NonNull public HillshadeLayer withSourceLayer(String sourceLayer)
      Set the source Layer.
      Parameters:
      sourceLayer - the source layer to set
      Returns:
      This
    • getSourceId

      @NonNull public String getSourceId()
      Get the source id.
      Returns:
      id of the source
    • withProperties

      @NonNull public HillshadeLayer withProperties(@NonNull PropertyValue<?>... properties)
      Set a property or properties.
      Parameters:
      properties - the var-args properties
      Returns:
      This
    • getHillshadeIlluminationDirection

      @NonNull public PropertyValue<Float> getHillshadeIlluminationDirection()
      Get the HillshadeIlluminationDirection property
      Returns:
      property wrapper value around Float
    • getHillshadeIlluminationAnchor

      @NonNull public PropertyValue<String> getHillshadeIlluminationAnchor()
      Get the HillshadeIlluminationAnchor property
      Returns:
      property wrapper value around String
    • getHillshadeExaggeration

      @NonNull public PropertyValue<Float> getHillshadeExaggeration()
      Get the HillshadeExaggeration property
      Returns:
      property wrapper value around Float
    • getHillshadeExaggerationTransition

      @NonNull public TransitionOptions getHillshadeExaggerationTransition()
      Get the HillshadeExaggeration property transition options
      Returns:
      transition options for Float
    • setHillshadeExaggerationTransition

      public void setHillshadeExaggerationTransition(@NonNull TransitionOptions options)
      Set the HillshadeExaggeration property transition options
      Parameters:
      options - transition options for Float
    • getHillshadeShadowColor

      @NonNull public PropertyValue<String> getHillshadeShadowColor()
      Get the HillshadeShadowColor property
      Returns:
      property wrapper value around String
    • getHillshadeShadowColorAsInt

      @ColorInt public int getHillshadeShadowColorAsInt()
      The shading color of areas that face away from the light source.
      Returns:
      int representation of a rgba string color
      Throws:
      RuntimeException - thrown if property isn't a value
    • getHillshadeShadowColorTransition

      @NonNull public TransitionOptions getHillshadeShadowColorTransition()
      Get the HillshadeShadowColor property transition options
      Returns:
      transition options for String
    • setHillshadeShadowColorTransition

      public void setHillshadeShadowColorTransition(@NonNull TransitionOptions options)
      Set the HillshadeShadowColor property transition options
      Parameters:
      options - transition options for String
    • getHillshadeHighlightColor

      @NonNull public PropertyValue<String> getHillshadeHighlightColor()
      Get the HillshadeHighlightColor property
      Returns:
      property wrapper value around String
    • getHillshadeHighlightColorAsInt

      @ColorInt public int getHillshadeHighlightColorAsInt()
      The shading color of areas that faces towards the light source.
      Returns:
      int representation of a rgba string color
      Throws:
      RuntimeException - thrown if property isn't a value
    • getHillshadeHighlightColorTransition

      @NonNull public TransitionOptions getHillshadeHighlightColorTransition()
      Get the HillshadeHighlightColor property transition options
      Returns:
      transition options for String
    • setHillshadeHighlightColorTransition

      public void setHillshadeHighlightColorTransition(@NonNull TransitionOptions options)
      Set the HillshadeHighlightColor property transition options
      Parameters:
      options - transition options for String
    • getHillshadeAccentColor

      @NonNull public PropertyValue<String> getHillshadeAccentColor()
      Get the HillshadeAccentColor property
      Returns:
      property wrapper value around String
    • getHillshadeAccentColorAsInt

      @ColorInt public int getHillshadeAccentColorAsInt()
      The shading color used to accentuate rugged terrain like sharp cliffs and gorges.
      Returns:
      int representation of a rgba string color
      Throws:
      RuntimeException - thrown if property isn't a value
    • getHillshadeAccentColorTransition

      @NonNull public TransitionOptions getHillshadeAccentColorTransition()
      Get the HillshadeAccentColor property transition options
      Returns:
      transition options for String
    • setHillshadeAccentColorTransition

      public void setHillshadeAccentColorTransition(@NonNull TransitionOptions options)
      Set the HillshadeAccentColor property transition options
      Parameters:
      options - transition options for String
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Layer
      Throws:
      Throwable