public static class HeatmapTileProvider.Builder
extends java.lang.Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
HeatmapTileProvider |
build()
构造热力图,调用该函数之前必须先通过 data 或者 weightedData 函数设置该热力图所要渲染的数据。
|
HeatmapTileProvider.Builder |
data(java.util.Collection<LatLng> val)
设置热力图绘制的数据,data 或 weightedData接口必须设置其中之一
Set the data for drawing the heatmap, either data or weightedData interface must be set |
HeatmapTileProvider.Builder |
gradient(Gradient val)
设置热力图渐变,有默认值 DEFAULT_GRADIENT,可不设置该接口
Set the gradient of the heatmap, with default value DEFAULT_GRADIENT, this interface can be omitted |
HeatmapTileProvider.Builder |
radius(int val)
设置热力图点半径,默认为12ps,可不设置该接口
Set the heatmap point radius, default is 12ps, this interface can be skipped |
HeatmapTileProvider.Builder |
transparency(double val)
设置热力图层透明度,默认 0.6,可不设置该接口
Set the opacity of the heatmap layer, default is 0.6, this interface can be omitted |
HeatmapTileProvider.Builder |
weightedData(java.util.Collection<WeightedLatLng> val)
设置热力图绘制的数据,带权值的位置点集合,data 或 weightedData接口必须设置其中之一
Set the data for drawing the heatmap, a collection of weighted points, either data or weightedData interface must be set |
public HeatmapTileProvider.Builder data(java.util.Collection<LatLng> val)
val - 热力图绘制数据,不能为null,大小不能为 0.
public HeatmapTileProvider.Builder weightedData(java.util.Collection<WeightedLatLng> val)
val - 热力图绘制数据,不能为null,大小不能为 0.
public HeatmapTileProvider.Builder radius(int val)
val - 热力图点半径,[10,50].
public HeatmapTileProvider.Builder gradient(Gradient val)
val - 热力图渐变
public HeatmapTileProvider.Builder transparency(double val)
val - 热力图层透明度 [0, 1]
public HeatmapTileProvider build()