@UiThread public class HillshadeLayer extends Layer
Constructor | Description |
---|---|
HillshadeLayer(java.lang.String layerId,
java.lang.String sourceId) |
Creates a HillshadeLayer.
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
finalize() |
|
PropertyValue<java.lang.String> |
getHillshadeAccentColor() |
Get the HillshadeAccentColor property
|
int |
getHillshadeAccentColorAsInt() |
The shading color used to accentuate rugged terrain like sharp cliffs and gorges.
|
TransitionOptions |
getHillshadeAccentColorTransition() |
Get the HillshadeAccentColor property transition options
|
PropertyValue<java.lang.Float> |
getHillshadeExaggeration() |
Get the HillshadeExaggeration property
|
TransitionOptions |
getHillshadeExaggerationTransition() |
Get the HillshadeExaggeration property transition options
|
PropertyValue<java.lang.String> |
getHillshadeHighlightColor() |
Get the HillshadeHighlightColor property
|
int |
getHillshadeHighlightColorAsInt() |
The shading color of areas that faces towards the light source.
|
TransitionOptions |
getHillshadeHighlightColorTransition() |
Get the HillshadeHighlightColor property transition options
|
PropertyValue<java.lang.String> |
getHillshadeIlluminationAnchor() |
Get the HillshadeIlluminationAnchor property
|
PropertyValue<java.lang.Float> |
getHillshadeIlluminationDirection() |
Get the HillshadeIlluminationDirection property
|
PropertyValue<java.lang.String> |
getHillshadeShadowColor() |
Get the HillshadeShadowColor property
|
int |
getHillshadeShadowColorAsInt() |
The shading color of areas that face away from the light source.
|
TransitionOptions |
getHillshadeShadowColorTransition() |
Get the HillshadeShadowColor property transition options
|
java.lang.String |
getSourceId() |
Get the source id.
|
protected void |
initialize(java.lang.String layerId,
java.lang.String sourceId) |
|
void |
setHillshadeAccentColorTransition(TransitionOptions options) |
Set the HillshadeAccentColor property transition options
|
void |
setHillshadeExaggerationTransition(TransitionOptions options) |
Set the HillshadeExaggeration property transition options
|
void |
setHillshadeHighlightColorTransition(TransitionOptions options) |
Set the HillshadeHighlightColor property transition options
|
void |
setHillshadeShadowColorTransition(TransitionOptions options) |
Set the HillshadeShadowColor property transition options
|
void |
setSourceLayer(java.lang.String sourceLayer) |
Set the source layer.
|
HillshadeLayer |
withProperties(PropertyValue<?>... properties) |
Set a property or properties.
|
HillshadeLayer |
withSourceLayer(java.lang.String sourceLayer) |
Set the source 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
public HillshadeLayer(java.lang.String layerId, java.lang.String sourceId)
layerId
- the id of the layersourceId
- the id of the sourceprotected void initialize(java.lang.String layerId, java.lang.String sourceId)
public void setSourceLayer(java.lang.String sourceLayer)
sourceLayer
- the source layer to set@NonNull public HillshadeLayer withSourceLayer(java.lang.String sourceLayer)
sourceLayer
- the source layer to set@NonNull public java.lang.String getSourceId()
@NonNull public HillshadeLayer withProperties(@NonNull PropertyValue<?>... properties)
properties
- the var-args properties@NonNull public PropertyValue<java.lang.Float> getHillshadeIlluminationDirection()
@NonNull public PropertyValue<java.lang.String> getHillshadeIlluminationAnchor()
@NonNull public PropertyValue<java.lang.Float> getHillshadeExaggeration()
@NonNull public TransitionOptions getHillshadeExaggerationTransition()
public void setHillshadeExaggerationTransition(@NonNull TransitionOptions options)
options
- transition options for Float@NonNull public PropertyValue<java.lang.String> getHillshadeShadowColor()
public int getHillshadeShadowColorAsInt()
java.lang.RuntimeException
- thrown if property isn't a value@NonNull public TransitionOptions getHillshadeShadowColorTransition()
public void setHillshadeShadowColorTransition(@NonNull TransitionOptions options)
options
- transition options for String@NonNull public PropertyValue<java.lang.String> getHillshadeHighlightColor()
public int getHillshadeHighlightColorAsInt()
java.lang.RuntimeException
- thrown if property isn't a value@NonNull public TransitionOptions getHillshadeHighlightColorTransition()
public void setHillshadeHighlightColorTransition(@NonNull TransitionOptions options)
options
- transition options for String@NonNull public PropertyValue<java.lang.String> getHillshadeAccentColor()
public int getHillshadeAccentColorAsInt()
java.lang.RuntimeException
- thrown if property isn't a value@NonNull public TransitionOptions getHillshadeAccentColorTransition()
public void setHillshadeAccentColorTransition(@NonNull TransitionOptions options)
options
- transition options for String