| 程序包 | 说明 |
|---|---|
| com.amap.api.maps | |
| com.amap.api.maps.model |
| 限定符和类型 | 方法和说明 |
|---|---|
HeatMapGridLayer |
AMap.addHeatMapGridLayer(HeatMapGridLayerOptions options)
在地图上添加一个热力图网格对象。
|
| 限定符和类型 | 方法和说明 |
|---|---|
HeatMapGridLayerOptions |
HeatMapGridLayerOptions.data(java.util.List<ColorLatLng> val)
设置热力图绘制的数据,data
Set the data for heatmap drawing, data |
HeatMapGridLayerOptions |
HeatMapGridLayer.getOptions()
获取热力图属性,如果初始化传入的null 则返回也是null
Get Heatmap Properties, returns null if initialized with null |
HeatMapGridLayerOptions |
HeatMapGridLayerOptions.maxZoom(float val)
最大缩放级别
Maximum zoom level |
HeatMapGridLayerOptions |
HeatMapGridLayerOptions.minZoom(float val)
最小缩放级别
Minimum zoom level |
HeatMapGridLayerOptions |
HeatMapGridLayerOptions.type(int val)
设置热力图类型
Set the heatmap type |
HeatMapGridLayerOptions |
HeatMapGridLayerOptions.visible(boolean isVisible)
设置可见性。
|
HeatMapGridLayerOptions |
HeatMapGridLayerOptions.zIndex(float zIndex)
设置Z轴的值。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
HeatMapGridLayer.setOptions(HeatMapGridLayerOptions options)
更新热力图属性
更新时会重新计算热力图数据,建议不要频繁更新
Update Heatmap Properties Updating will recalculate heatmap data, it is recommended not to update frequently |