【问题标题】:How can I use an OSM XML in OpenLayers3?如何在 OpenLayers3 中使用 OSM XML?
【发布时间】:2016-08-20 05:21:52
【问题描述】:

如何在 OpenLayers3 中使用 OSM (OpenStreetMap) XML?我已阅读 API,并尝试调整 OL3 网站上唯一可用的示例,但没有任何效果。

我从那里得到了 OSM XML:http://opensnowmap.org/iframes/data.html(文件名为 planet_pistes.osm)

我的目的是使用 OL3 在地图中显示这些数据。在这个网站http://opensnowmap.org/,用OL2显示。

有人知道怎么做吗?或者在 OL3 网站旁边有一个工作示例?

谢谢

【问题讨论】:

    标签: xml openstreetmap openlayers-3


    【解决方案1】:

    有很多方法可以做你想做的事,但没有直接的方法。

    要像 opensnowmap 那样制作瓷砖,opensnowmap 的代码在这里: https://github.com/yvecai/opensnowmap.org https://github.com/yvecai/mapnik-opensnowmap.org https://github.com/yvecai/data-opensnowmap.org

    如果您想根据数据制作自己的图块,学习的一个很好的切入点是 http://switch2osm.org/fr/

    Yves - 网站管理员 opensnowmap.org

    【讨论】:

    • 顺便说一句,这个问题可能与169387重复。
    猜你喜欢
    • 2017-10-25
    • 1970-01-01
    • 1970-01-01
    • 2013-08-14
    • 1970-01-01
    • 2020-06-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多