Skip to content

HeatmapFeature ​

HeatmapFeature ​

热力图要素类

继承BaseFeature

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热力值