【问题标题】:Google Maps: Different color heat map based off of value谷歌地图:基于价值的不同颜色的热图
【发布时间】:2014-10-04 10:29:29
【问题描述】:

我目前正在开发一个需要热图的应用程序。根据数据中的值,我想更改该特定位置的渐变。我还没有找到任何指向我正确方向的东西。有什么建议吗?

【问题讨论】:

    标签: javascript google-maps google-maps-api-3 maps heatmap


    【解决方案1】:

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

    你可以设置渐变。

    heatmap.set('gradient', [ /* gradient */ ])
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-05-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-15
      • 2015-12-26
      相关资源
      最近更新 更多