【问题标题】:Heatmaps layer on OSMdroid mapviewOSMdroid mapview 上的热图层
【发布时间】:2012-11-12 17:59:01
【问题描述】:

是否可以将像 https://google-developers.appspot.com/maps/documentation/javascript/examples/layer-heatmap 这样的 Google 地图热图图层显示为自定义 OSMdroid Mapview 上的图层?

或者有没有一种简单的方法可以将热图地理点 [{lat, lon, weight-value},..] 作为图层直接绘制到地图上?

【问题讨论】:

  • 您找到在 OSMdroid Mapview 上渲染热图的好方法了吗?

标签: android google-maps google-maps-api-3 android-mapview osmdroid


【解决方案1】:

我发现了 Seth Golub 的这个不错的 Python 脚本 https://github.com/sethoscope/heatmap/blob/master/heatmap.py 将 lat、lon [weight] 值列表或 .gpx 转换为热图 - 具有很好的自定义选项。

除此之外,还有一个 Andrew Harvey 的包装器,用于从您的文件中渲染图块 https://github.com/andrewharvey/OpenStreetMap-User-Edits-Heatmap/blob/master/render-heatmap-to-tiles.pl

我的第一次测试表明,我可以使用这些脚本在 Google 地图上创建类似的结果。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多