谷歌地图反应有热图吗?

时间:2017-01-19 12:29:51

标签: google-maps reactjs

我需要使用react和google maps制作热图。但我没有在地图中找到反应文档。不要加热谷歌地图的反应?有人能帮助我吗?谢谢。

1 个答案:

答案 0 :(得分:2)

这部分文档解释了如何在javascript中添加热图图层(这应该是反应中使用的相关内容)

https://developers.google.com/maps/documentation/javascript/examples/layer-heatmap

new google.maps.visualization.HeatmapLayer({
          data: points, //the 'heat' of the heatmap
          map: map //the map instance
        });