public class HillshadeLayer extends Layer
Constructor and Description |
---|
HillshadeLayer(String layerId,
String sourceId)
Creates a HillshadeLayer.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
PropertyValue<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<Float> |
getHillshadeExaggeration()
Get the HillshadeExaggeration property
|
TransitionOptions |
getHillshadeExaggerationTransition()
Get the HillshadeExaggeration property transition options
|
PropertyValue<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<String> |
getHillshadeIlluminationAnchor()
Get the HillshadeIlluminationAnchor property
|
PropertyValue<Float> |
getHillshadeIlluminationDirection()
Get the HillshadeIlluminationDirection property
|
PropertyValue<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
|
String |
getSourceId()
Get the source id.
|
protected void |
initialize(String layerId,
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(String sourceLayer)
Set the source layer.
|
HillshadeLayer |
withProperties(PropertyValue<?>... properties)
Set a property or properties.
|
HillshadeLayer |
withSourceLayer(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 void setSourceLayer(String sourceLayer)
sourceLayer
- the source layer to setpublic HillshadeLayer withSourceLayer(String sourceLayer)
sourceLayer
- the source layer to setpublic String getSourceId()
public HillshadeLayer withProperties(PropertyValue<?>... properties)
properties
- the var-args propertiespublic PropertyValue<Float> getHillshadeIlluminationDirection()
public PropertyValue<String> getHillshadeIlluminationAnchor()
public PropertyValue<Float> getHillshadeExaggeration()
public TransitionOptions getHillshadeExaggerationTransition()
public void setHillshadeExaggerationTransition(TransitionOptions options)
options
- transition options for Floatpublic PropertyValue<String> getHillshadeShadowColor()
public int getHillshadeShadowColorAsInt()
RuntimeException
- thrown if property isn't a valuepublic TransitionOptions getHillshadeShadowColorTransition()
public void setHillshadeShadowColorTransition(TransitionOptions options)
options
- transition options for Stringpublic PropertyValue<String> getHillshadeHighlightColor()
public int getHillshadeHighlightColorAsInt()
RuntimeException
- thrown if property isn't a valuepublic TransitionOptions getHillshadeHighlightColorTransition()
public void setHillshadeHighlightColorTransition(TransitionOptions options)
options
- transition options for Stringpublic PropertyValue<String> getHillshadeAccentColor()
public int getHillshadeAccentColorAsInt()
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.