public class HeatmapLayer extends Layer
Constructor and Description |
---|
HeatmapLayer(String layerId,
String sourceId)
Creates a HeatmapLayer.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
Expression |
getFilter()
Get a single expression filter.
|
PropertyValue<String> |
getHeatmapColor()
Get the HeatmapColor property
|
int |
getHeatmapColorAsInt()
Defines the color of each pixel based on its density value in a heatmap.
|
PropertyValue<Float> |
getHeatmapIntensity()
Get the HeatmapIntensity property
|
TransitionOptions |
getHeatmapIntensityTransition()
Get the HeatmapIntensity property transition options
|
PropertyValue<Float> |
getHeatmapOpacity()
Get the HeatmapOpacity property
|
TransitionOptions |
getHeatmapOpacityTransition()
Get the HeatmapOpacity property transition options
|
PropertyValue<Float> |
getHeatmapRadius()
Get the HeatmapRadius property
|
TransitionOptions |
getHeatmapRadiusTransition()
Get the HeatmapRadius property transition options
|
PropertyValue<Float> |
getHeatmapWeight()
Get the HeatmapWeight property
|
String |
getSourceId()
Get the source id.
|
String |
getSourceLayer()
Get the source layer.
|
protected void |
initialize(String layerId,
String sourceId) |
void |
setFilter(Expression filter)
Set a single expression filter.
|
void |
setHeatmapIntensityTransition(TransitionOptions options)
Set the HeatmapIntensity property transition options
|
void |
setHeatmapOpacityTransition(TransitionOptions options)
Set the HeatmapOpacity property transition options
|
void |
setHeatmapRadiusTransition(TransitionOptions options)
Set the HeatmapRadius property transition options
|
void |
setSourceLayer(String sourceLayer)
Set the source layer.
|
HeatmapLayer |
withFilter(Expression filter)
Set a single expression filter.
|
HeatmapLayer |
withProperties(PropertyValue<?>... properties)
Set a property or properties.
|
HeatmapLayer |
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 HeatmapLayer withSourceLayer(String sourceLayer)
sourceLayer
- the source layer to setpublic String getSourceId()
public String getSourceLayer()
public void setFilter(Expression filter)
filter
- the expression filter to setpublic HeatmapLayer withFilter(Expression filter)
filter
- the expression filter to setpublic Expression getFilter()
public HeatmapLayer withProperties(PropertyValue<?>... properties)
properties
- the var-args propertiespublic PropertyValue<Float> getHeatmapRadius()
public TransitionOptions getHeatmapRadiusTransition()
public void setHeatmapRadiusTransition(TransitionOptions options)
options
- transition options for Floatpublic PropertyValue<Float> getHeatmapWeight()
public PropertyValue<Float> getHeatmapIntensity()
public TransitionOptions getHeatmapIntensityTransition()
public void setHeatmapIntensityTransition(TransitionOptions options)
options
- transition options for Floatpublic PropertyValue<String> getHeatmapColor()
public int getHeatmapColorAsInt()
RuntimeException
- thrown if property isn't a valuepublic PropertyValue<Float> getHeatmapOpacity()
public TransitionOptions getHeatmapOpacityTransition()
public void setHeatmapOpacityTransition(TransitionOptions options)
options
- transition options for Float© 2015–2019 Mapbox. All rights reserved.