Package com.google.maps.android.heatmaps
Class HeatmapTileProvider.Builder
-
- All Implemented Interfaces:
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.- Returns:
This builder.
-
weightedData
final HeatmapTileProvider.Builder weightedData(Collection<WeightedLatLng> weightedData)
Specifies the dataset to use for the heatmap, accepting WeightedLatLngs.
- Parameters:
weightedData- A collection of WeightedLatLngs.- Returns:
This builder.
-
radius
final HeatmapTileProvider.Builder radius(Integer radius)
Specifies the radius of the heatmap blur, in pixels.
- Parameters:
radius- The radius.- Returns:
This builder.
-
gradient
final HeatmapTileProvider.Builder gradient(Gradient gradient)
Specifies the color gradient of the heatmap.
- Parameters:
gradient- The gradient to use.- Returns:
This builder.
-
opacity
final HeatmapTileProvider.Builder opacity(Double opacity)
Specifies the opacity of the heatmap layer.
- Parameters:
opacity- The opacity.- Returns:
This builder.
-
maxIntensity
final HeatmapTileProvider.Builder maxIntensity(Double intensity)
Specifies a custom maximum intensity value for the heatmap.
- Parameters:
intensity- The maximum intensity.- Returns:
This builder.
-
build
final HeatmapTileProvider build()
Creates a new HeatmapTileProvider instance from the builder's properties.
- Returns:
A new HeatmapTileProvider.
-
-
-
-