Openlayers 中 Bing 地图的 WrapDateLine
我使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据您的实施情况,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.