【问题标题】:Change map boundaries google maps api更改地图边界 google maps api
【发布时间】:2013-07-12 20:19:55
【问题描述】:

有谁知道如何使用 google maps api 更改地图的边界?我目前有一张显示完整世界的地图,如果我缩小它会显示完整世界的多个副本。问题是我只想展示北美,而且我只想展示一次。有人可以帮忙吗?谢谢!

【问题讨论】:

  • 向我们展示您当前的代码。

标签: javascript jquery google-maps


【解决方案1】:

重复:Google Maps API V3: limit map bounds


Google Maps API 中没有限制地图边界的 API。您可以接受external solution,或者考虑使用其他支持max-extent 功能的图库,如OpenLayersLeaflet

【讨论】:

    猜你喜欢
    • 2012-02-24
    • 2011-12-25
    • 2015-06-11
    • 1970-01-01
    • 1970-01-01
    • 2018-01-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多