java.lang.Object | ||||
↳ | com.carto.layers.Layer | |||
↳ | com.carto.layers.TileLayer | |||
↳ | com.carto.layers.RasterTileLayer | |||
↳ | com.carto.layers.HillshadeRasterTileLayer |
A tile layer that displays an overlay hillshading. Should be used together with corresponding data source that encodes height in RGBA image.
The shading is based on the direction of the main light source, which can be configured using Options class.
Note: this class is experimental and may change or even be removed in future SDK versions.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
HillshadeRasterTileLayer(TileDataSource dataSource)
Constructs a HillshadeRasterTileLayer object from a data source.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized void | delete() | ||||||||||
float |
getContrast()
Returns the contrast of the hillshade overlay.
| ||||||||||
float |
getHeightScale()
Returns the height scale of the hillshade overlay.
| ||||||||||
Color |
getHighlightColor()
Returns the highlight color of the layer.
| ||||||||||
Color |
getShadowColor()
Returns the shadow color of the layer.
| ||||||||||
void |
setContrast(float contrast)
Sets the contrast of the hillshade overlay.
| ||||||||||
void |
setHeightScale(float heightScale)
Sets the height scale of the hillshade overlay.
| ||||||||||
void |
setHighlightColor(Color color)
Sets the highlight color of the layer.
| ||||||||||
void |
setShadowColor(Color color)
Sets the shadow color of the layer.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Constructs a HillshadeRasterTileLayer object from a data source.
dataSource | The data source from which this layer loads data. |
---|
Returns the contrast of the hillshade overlay.
Returns the height scale of the hillshade overlay.
Returns the highlight color of the layer.
Returns the shadow color of the layer.
Sets the contrast of the hillshade overlay.
contrast | The contrast value (between 0..1). |
---|
Sets the height scale of the hillshade overlay.
heightScale | The relative height scale. Actual height is multiplied by this values. |
---|
Sets the highlight color of the layer.
color | The new highlight color of the layer. |
---|
Sets the shadow color of the layer.
color | The new shadow color of the layer. |
---|