【问题标题】:Openlayer equivalent of Google Map's map.getBounds()Openlayer 相当于 Google Map 的 map.getBounds()
【发布时间】:2014-03-29 17:22:57
【问题描述】:

在 Google 地图的 javascript API 中,您可以调用 map.getBounds().getNorthEast()map.getBounds().getSouthWest(),它们会返回当前可见视口的坐标。

OpenLayers 中是否有等价物?

【问题讨论】:

  • 严格来说,OpenLayers 中没有等效的函数,但OpenLayers.Map.getExtent() 以数据结构返回数据,您可以使用该数据结构计算这些值。

标签: google-maps openlayers


【解决方案1】:

OpenLayers.Map.getExtent() 就是你要找的东西。

【讨论】:

    猜你喜欢
    • 2019-07-06
    • 1970-01-01
    • 1970-01-01
    • 2012-06-09
    • 1970-01-01
    • 2011-01-20
    • 2013-07-18
    • 2015-11-07
    • 1970-01-01
    相关资源
    最近更新 更多