Class HeatmapLayer
java.lang.Object
com.trimblemaps.mapsdk.style.layers.Layer
com.trimblemaps.mapsdk.style.layers.HeatmapLayer
A heatmap.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfinalize()Get a single expression filter.Get the HeatmapColor propertyintDefines the color of each pixel based on its density value in a heatmap.Get the HeatmapIntensity propertyGet the HeatmapIntensity property transition optionsGet the HeatmapOpacity propertyGet the HeatmapOpacity property transition optionsGet the HeatmapRadius propertyGet the HeatmapRadius property transition optionsGet the HeatmapWeight propertyGet the source id.Get the source layer.protected voidinitialize(String layerId, String sourceId) voidsetFilter(Expression filter) Set a single expression filter.voidSet the HeatmapIntensity property transition optionsvoidSet the HeatmapOpacity property transition optionsvoidSet the HeatmapRadius property transition optionsvoidsetSourceLayer(String sourceLayer) Set the source layer.withFilter(Expression filter) Set a single expression filter.withProperties(PropertyValue<?>... properties) Set a property or properties.withSourceLayer(String sourceLayer) Set the source Layer.Methods inherited from class com.trimblemaps.mapsdk.style.layers.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
-
Constructor Details
-
HeatmapLayer
Creates a HeatmapLayer.- Parameters:
layerId- the id of the layersourceId- the id of the source
-
-
Method Details
-
initialize
-
setSourceLayer
Set the source layer.- Parameters:
sourceLayer- the source layer to set
-
withSourceLayer
Set the source Layer.- Parameters:
sourceLayer- the source layer to set- Returns:
- This
-
getSourceId
Get the source id.- Returns:
- id of the source
-
getSourceLayer
Get the source layer.- Returns:
- sourceLayer the source layer to get
-
setFilter
Set a single expression filter.- Parameters:
filter- the expression filter to set
-
withFilter
Set a single expression filter.- Parameters:
filter- the expression filter to set- Returns:
- This
-
getFilter
Get a single expression filter.- Returns:
- the expression filter to get
-
withProperties
Set a property or properties.- Parameters:
properties- the var-args properties- Returns:
- This
-
getHeatmapRadius
Get the HeatmapRadius property- Returns:
- property wrapper value around Float
-
getHeatmapRadiusTransition
Get the HeatmapRadius property transition options- Returns:
- transition options for Float
-
setHeatmapRadiusTransition
Set the HeatmapRadius property transition options- Parameters:
options- transition options for Float
-
getHeatmapWeight
Get the HeatmapWeight property- Returns:
- property wrapper value around Float
-
getHeatmapIntensity
Get the HeatmapIntensity property- Returns:
- property wrapper value around Float
-
getHeatmapIntensityTransition
Get the HeatmapIntensity property transition options- Returns:
- transition options for Float
-
setHeatmapIntensityTransition
Set the HeatmapIntensity property transition options- Parameters:
options- transition options for Float
-
getHeatmapColor
Get the HeatmapColor property- Returns:
- property wrapper value around String
-
getHeatmapColorAsInt
@ColorInt public int getHeatmapColorAsInt()Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses `["heatmap-density"]` as input.- Returns:
- int representation of a rgba string color
- Throws:
RuntimeException- thrown if property isn't a value
-
getHeatmapOpacity
Get the HeatmapOpacity property- Returns:
- property wrapper value around Float
-
getHeatmapOpacityTransition
Get the HeatmapOpacity property transition options- Returns:
- transition options for Float
-
setHeatmapOpacityTransition
Set the HeatmapOpacity property transition options- Parameters:
options- transition options for Float
-
finalize
-