public static class HeatMapTileProvider.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
HeatMapTileProvider |
build(TencentMap map) |
HeatMapTileProvider.Builder |
data(java.util.Collection<LatLng> val)
设置坐标数据
|
java.util.Collection<WeightedLatLng> |
getData() |
Gradient |
getGradient() |
HeatMapTileProvider.HeatTileGenerator |
getHeatTileGenerator() |
double |
getOpacity() |
int |
getRadius() |
HeatMapTileProvider.OnHeatMapReadyListener |
getReadyListener() |
HeatMapTileProvider.Builder |
gradient(Gradient val)
设置渐变颜色
|
HeatMapTileProvider.Builder |
opacity(double val)
设置透明色
|
HeatMapTileProvider.Builder |
radius(int radius)
设置半径
|
HeatMapTileProvider.Builder |
readyListener(HeatMapTileProvider.OnHeatMapReadyListener listener)
设置热力图准备完成回调
|
HeatMapTileProvider.Builder |
tileGenerator(HeatMapTileProvider.HeatTileGenerator tileGenerator)
设置热力图瓦片生产器
|
HeatMapTileProvider.Builder |
weightedData(java.util.Collection<WeightedLatLng> val)
设置权重坐标数据
|
public HeatMapTileProvider.Builder data(java.util.Collection<LatLng> val)
val
- 坐标数据,不能为空public HeatMapTileProvider.Builder weightedData(java.util.Collection<WeightedLatLng> val)
val
- 带权重的坐标数据,不能为空public HeatMapTileProvider.Builder gradient(Gradient val)
val
- 热力图渐变色public HeatMapTileProvider.Builder opacity(double val)
val
- 透明值,取值范围 [0, 1]public HeatMapTileProvider.Builder radius(int radius)
radius
- public HeatMapTileProvider.Builder tileGenerator(HeatMapTileProvider.HeatTileGenerator tileGenerator)
tileGenerator
- 瓦片生成器public HeatMapTileProvider.Builder readyListener(HeatMapTileProvider.OnHeatMapReadyListener listener)
listener
- 准备完成监听器public java.util.Collection<WeightedLatLng> getData()
public int getRadius()
public Gradient getGradient()
public double getOpacity()
public HeatMapTileProvider.HeatTileGenerator getHeatTileGenerator()
public HeatMapTileProvider.OnHeatMapReadyListener getReadyListener()
public HeatMapTileProvider build(TencentMap map)