Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 554 Bytes

heat-map.md

File metadata and controls

41 lines (32 loc) · 554 Bytes

HeatMap 热力图

points = [
  {
    latitude: 39,
    longitude: 113,
    intensity: 16,
  },
  ...
]

<MapView>
  <MapView.HeatMap
    points={this.points}
    radius={20}
    opacity={0.5}
  />
</MapView>

Props

points: HeatMapNode[]

点数组

HeatMapNode

  • latitude 经度
  • longitude 纬度
  • instensity 强度

radius: number

半径


opacity: number

透明度