Openlayers 中 Bing 地图的 WrapDateLine

发布于 2024-12-24 20:53:49 字数 134 浏览 5 评论 0原文

我使用 openlayers 的 bing 地图作为地图中的基础图层。但是,当缩小到地图的最大范围时,即使我将wrapDateLine 设置为true,我也无法再向东或向西平移。我将基础层更改为 yahoo!或谷歌地图一切正常。之前有人反驳过这个问题吗?

I am using openlayers' bing maps as base layers in my map. However, when zoom out to the max extent of the map, I cann't pan east or west any more even I set the wrapDateLine to true. I changed the base layer to yahoo! or google maps everything works fine. Any one countered this issue before?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情徒 2024-12-31 20:53:49

根据您的实施情况,OpenLayers 可能不支持它,如 Bing 地图层文档中所述。与 Google 地图图层相反,没有名为“wrapDateLine”的选项,请参阅比较:

http://dev.openlayers.org/docs/files/OpenLayers/Layer/Bing-js.html

http://dev.openlayers.org/docs/files/OpenLayers/Layer /Google-js.html

分享您的代码或将其放在 jsfiddle 上,以便我们可以进一步帮助您。

Depending your implementation, it might not be supported in OpenLayers as described in the documentation for the Bing Maps layer. There is no option called wrapDateLine contrary to Google Maps layer, see for comparison:

http://dev.openlayers.org/docs/files/OpenLayers/Layer/Bing-js.html

http://dev.openlayers.org/docs/files/OpenLayers/Layer/Google-js.html

Share your code or put it on jsfiddle so we could try to help you further.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文