-
public final class HeatmapTileProvider.BuilderBuilder class for the HeatmapTileProvider.
-
-
Constructor Summary
Constructors Constructor Description HeatmapTileProvider.Builder()
-
Method Summary
Modifier and Type Method Description final HeatmapTileProvider.Builderdata(Collection<LatLng> latLngs)Specifies the dataset to use for the heatmap, accepting unweighted LatLngs. final HeatmapTileProvider.BuilderweightedData(Collection<WeightedLatLng> weightedData)Specifies the dataset to use for the heatmap, accepting WeightedLatLngs. final HeatmapTileProvider.Builderradius(Integer radius)Specifies the radius of the heatmap blur, in pixels. final HeatmapTileProvider.Buildergradient(Gradient gradient)Specifies the color gradient of the heatmap. final HeatmapTileProvider.Builderopacity(Double opacity)Specifies the opacity of the heatmap layer. final HeatmapTileProvider.BuildermaxIntensity(Double intensity)Specifies a custom maximum intensity value for the heatmap. final HeatmapTileProviderbuild()Creates a new HeatmapTileProvider instance from the builder's properties. -
-
Method Detail
-
data
final HeatmapTileProvider.Builder data(Collection<LatLng> latLngs)
Specifies the dataset to use for the heatmap, accepting unweighted LatLngs.
- Parameters:
latLngs- A collection of LatLngs.
-
weightedData
final HeatmapTileProvider.Builder weightedData(Collection<WeightedLatLng> weightedData)
Specifies the dataset to use for the heatmap, accepting WeightedLatLngs.
- Parameters:
weightedData- A collection of WeightedLatLngs.
-
radius
final HeatmapTileProvider.Builder radius(Integer radius)
Specifies the radius of the heatmap blur, in pixels.
- Parameters:
radius- The radius.
-
gradient
final HeatmapTileProvider.Builder gradient(Gradient gradient)
Specifies the color gradient of the heatmap.
- Parameters:
gradient- The gradient to use.
-
opacity
final HeatmapTileProvider.Builder opacity(Double opacity)
Specifies the opacity of the heatmap layer.
- Parameters:
opacity- The opacity.
-
maxIntensity
final HeatmapTileProvider.Builder maxIntensity(Double intensity)
Specifies a custom maximum intensity value for the heatmap.
- Parameters:
intensity- The maximum intensity.
-
build
final HeatmapTileProvider build()
Creates a new HeatmapTileProvider instance from the builder's properties.
-
-
-
-