Class HillshadeLayer
java.lang.Object
com.trimblemaps.mapsdk.style.layers.Layer
com.trimblemaps.mapsdk.style.layers.HillshadeLayer
Client-side hillshading visualization based on DEM data. Currently, the implementation only supports Mapbox Terrain RGB and Mapzen Terrarium tiles.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfinalize()Get the HillshadeAccentColor propertyintThe shading color used to accentuate rugged terrain like sharp cliffs and gorges.Get the HillshadeAccentColor property transition optionsGet the HillshadeExaggeration propertyGet the HillshadeExaggeration property transition optionsGet the HillshadeHighlightColor propertyintThe shading color of areas that faces towards the light source.Get the HillshadeHighlightColor property transition optionsGet the HillshadeIlluminationAnchor propertyGet the HillshadeIlluminationDirection propertyGet the HillshadeShadowColor propertyintThe shading color of areas that face away from the light source.Get the HillshadeShadowColor property transition optionsGet the source id.protected voidinitialize(String layerId, String sourceId) voidSet the HillshadeAccentColor property transition optionsvoidSet the HillshadeExaggeration property transition optionsvoidSet the HillshadeHighlightColor property transition optionsvoidSet the HillshadeShadowColor property transition optionsvoidsetSourceLayer(String sourceLayer) Set the source layer.withProperties(PropertyValue<?>... properties) Set a property or properties.withSourceLayer(String sourceLayer) Set the source Layer.Methods inherited from class com.trimblemaps.mapsdk.style.layers.Layer
checkThread, getId, getMaxZoom, getMinZoom, getNativePtr, getVisibility, isDetached, nativeGetFilter, nativeGetId, nativeGetMaxZoom, nativeGetMinZoom, nativeGetSourceId, nativeGetSourceLayer, nativeGetVisibility, nativeSetFilter, nativeSetLayoutProperty, nativeSetMaxZoom, nativeSetMinZoom, nativeSetPaintProperty, nativeSetSourceLayer, setDetached, setMaxZoom, setMinZoom, setProperties
-
Constructor Details
-
HillshadeLayer
Creates a HillshadeLayer.- Parameters:
layerId- the id of the layersourceId- the id of the source
-
-
Method Details
-
initialize
-
setSourceLayer
Set the source layer.- Parameters:
sourceLayer- the source layer to set
-
withSourceLayer
Set the source Layer.- Parameters:
sourceLayer- the source layer to set- Returns:
- This
-
getSourceId
Get the source id.- Returns:
- id of the source
-
withProperties
Set a property or properties.- Parameters:
properties- the var-args properties- Returns:
- This
-
getHillshadeIlluminationDirection
Get the HillshadeIlluminationDirection property- Returns:
- property wrapper value around Float
-
getHillshadeIlluminationAnchor
Get the HillshadeIlluminationAnchor property- Returns:
- property wrapper value around String
-
getHillshadeExaggeration
Get the HillshadeExaggeration property- Returns:
- property wrapper value around Float
-
getHillshadeExaggerationTransition
Get the HillshadeExaggeration property transition options- Returns:
- transition options for Float
-
setHillshadeExaggerationTransition
Set the HillshadeExaggeration property transition options- Parameters:
options- transition options for Float
-
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
Get the HillshadeShadowColor property transition options- Returns:
- transition options for String
-
setHillshadeShadowColorTransition
Set the HillshadeShadowColor property transition options- Parameters:
options- transition options for 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
Get the HillshadeHighlightColor property transition options- Returns:
- transition options for String
-
setHillshadeHighlightColorTransition
Set the HillshadeHighlightColor property transition options- Parameters:
options- transition options for 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
Get the HillshadeAccentColor property transition options- Returns:
- transition options for String
-
setHillshadeAccentColorTransition
Set the HillshadeAccentColor property transition options- Parameters:
options- transition options for String
-
finalize
-