【问题标题】:Other projections in Google Maps API?Google Maps API 中的其他预测?
【发布时间】:2018-10-19 08:07:13
【问题描述】:

我正在使用 lat/lons 和 Google Maps API 绘制数据。但是,我的一些数据位于高纬度,并且没有绘制出来,因为谷歌地图使用了 85 度截断的墨卡托投影。有没有办法解决这个问题?

这是我目前的地图:http://erbweather.com/choosestation_GSOD_global.html

对于南极洲,我使用的是完全不同的地图:http://erbweather.com/choosestation_GSOD_Antarctica.html

有没有办法将所有数据都放在一张(美观且响应迅速)的地图上?

【问题讨论】:

    标签: google-maps google-maps-api-3 map-projections mercator


    【解决方案1】:

    我最近问了一个类似的问题(很遗憾被否决了):Is it possible to use non Mercator projections in Mapbox, Google Maps or any other webmap API?

    Google 的墨卡托投影在 85 度处截断,因为在那之后事情变得极度扭曲。

    据我所知,Web 地图 API 中的非墨卡托投影选项有限。以下是迄今为止我发现的最好的:

    • Google sort of 支持其他投影

    • OpenLayers supports 使用proj4 的其他投影

    • 这个在 Mapbox 上打开的 issue 可能值得关注

    • Cesium 支持地球/平面视图

    • 如果您只需要有限的网络地图功能,那么 d3 可以提供一些选项:例如d3-geo-projection

    【讨论】:

      猜你喜欢
      • 2017-09-08
      • 1970-01-01
      • 1970-01-01
      • 2013-06-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多