public static class HeatmapTileProvider.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Constructor for builder.
|
Modifier and Type | Method and Description |
---|---|
HeatmapTileProvider |
build()
Call when all desired options have been set.
|
HeatmapTileProvider.Builder |
data(java.util.Collection<LatLng> val)
Setter for data in builder.
|
HeatmapTileProvider.Builder |
gradient(Gradient val)
Setter for gradient in builder
|
HeatmapTileProvider.Builder |
maxIntensity(double val)
Setter for Max Intensity in builder
|
HeatmapTileProvider.Builder |
opacity(double val)
Setter for opacity in builder
|
HeatmapTileProvider.Builder |
radius(int val)
Setter for radius in builder
|
HeatmapTileProvider.Builder |
weightedData(java.util.Collection<WeightedLatLng> val)
Setter for data in builder.
|
public Builder()
public HeatmapTileProvider.Builder data(java.util.Collection<LatLng> val)
val
- Collection of LatLngs to put into quadtree.
Should be non-empty.public HeatmapTileProvider.Builder weightedData(java.util.Collection<WeightedLatLng> val)
val
- Collection of WeightedLatLngs to put into quadtree.
Should be non-empty.public HeatmapTileProvider.Builder radius(int val)
val
- Radius of convolution to use, in terms of pixels.
Must be within minimum and maximum values of 10 to 50 inclusive.public HeatmapTileProvider.Builder gradient(Gradient val)
val
- Gradient to color heatmap with.public HeatmapTileProvider.Builder opacity(double val)
val
- Opacity of the entire heatmap in range [0, 1]public HeatmapTileProvider.Builder maxIntensity(double val)
val
- maximum intensity of pixel densitypublic HeatmapTileProvider build()