## 类的使用
com.amap.api.maps.model.HeatMapGridLayerOptions

- 使用HeatMapGridLayerOptions的程序包
  程序包 | 说明
  --- | ---
  com.amap.api.maps |
  com.amap.api.maps.model |

- - ### com.amap.api.maps中HeatMapGridLayerOptions的使用

    参数类型为HeatMapGridLayerOptions的com.amap.api.maps中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `HeatMapGridLayer` | AMap.`addHeatMapGridLayer(HeatMapGridLayerOptions options)` 在地图上添加一个热力图网格对象。

  - ### com.amap.api.maps.model中HeatMapGridLayerOptions的使用

    返回HeatMapGridLayerOptions的com.amap.api.maps.model中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `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轴的值。

    参数类型为HeatMapGridLayerOptions的com.amap.api.maps.model中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | HeatMapGridLayer.`setOptions(HeatMapGridLayerOptions options)` 更新热力图属性 更新时会重新计算热力图数据，建议不要频繁更新 Update Heatmap Properties Updating will recalculate heatmap data, it is recommended not to update frequently