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