Appearance
HeatmapFeature
HeatmapFeature
热力图要素类
Examples
javascript
const heatmapFeature = new DiMap.HeatmapFeature({
geoData: [116.405467, 39.907761],
heatmapValue: 10
})
const heatmapLayer = new DiMap.HeatmapLayer({ max: 100 })
heatmapFeature.addToLayer(heatmapLayer)
heatmapLayer.addToMap(map)constructor
Parameters
| 参数名 | 必选 | 类型 | 描述 |
|---|---|---|---|
opts | 是 | HeatmapFeatureOptions | 热力图要素属性 |
userData | 否 | Record<string, any> | 用户自定义数据,默认值为 {} |
HeatmapFeatureOptions
热力图要素属性
Properties
| 参数名 | 必选 | 类型 | 描述 |
|---|---|---|---|
geoData | 是 | [number, number] | 空间数据,[经度, 纬度] |
heatmapValue | 是 | number | 热力值 |