public class HillshadeLayer extends Layer
Constructor and Description |
---|
HillshadeLayer(java.lang.String layerId,
java.lang.String sourceId)
Creates a HillshadeLayer.
|
Modifier and Type | Method and 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 setpublic HillshadeLayer withSourceLayer(java.lang.String sourceLayer)
sourceLayer
- the source layer to setpublic java.lang.String getSourceId()
public HillshadeLayer withProperties(PropertyValue<?>... properties)
properties
- the var-args propertiespublic PropertyValue<java.lang.Float> getHillshadeIlluminationDirection()
public PropertyValue<java.lang.String> getHillshadeIlluminationAnchor()
public PropertyValue<java.lang.Float> getHillshadeExaggeration()
public TransitionOptions getHillshadeExaggerationTransition()
public void setHillshadeExaggerationTransition(TransitionOptions options)
options
- transition options for Floatpublic PropertyValue<java.lang.String> getHillshadeShadowColor()
public int getHillshadeShadowColorAsInt()
java.lang.RuntimeException
- thrown if property isn't a valuepublic TransitionOptions getHillshadeShadowColorTransition()
public void setHillshadeShadowColorTransition(TransitionOptions options)
options
- transition options for Stringpublic PropertyValue<java.lang.String> getHillshadeHighlightColor()
public int getHillshadeHighlightColorAsInt()
java.lang.RuntimeException
- thrown if property isn't a valuepublic TransitionOptions getHillshadeHighlightColorTransition()
public void setHillshadeHighlightColorTransition(TransitionOptions options)
options
- transition options for Stringpublic PropertyValue<java.lang.String> getHillshadeAccentColor()
public int getHillshadeAccentColorAsInt()
java.lang.RuntimeException
- thrown if property isn't a valuepublic TransitionOptions getHillshadeAccentColorTransition()
public void setHillshadeAccentColorTransition(TransitionOptions options)
options
- transition options for String© 2015–2019 Mapbox. All rights reserved.