使用Maps API v2显示整个世界 [英] Display the whole world with maps api v2

查看:68
本文介绍了使用Maps API v2显示整个世界的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序,我想向全世界展示.我正在使用google maps api v2,并且我无法将缩放级别设置为小于2. 有没有办法用Google API显示整个世界?

i am developing an app, and i want to show the whole world. I am using google maps api v2, and i can't set zoom level less than 2. Is there any way to display the whole world with google api?

推荐答案

当前没有办法.文档中指出,最低缩放级别可以为2,但还取决于以像素为单位的地图大小.在更大的屏幕上,您可以将其限制为3或更高.

Currently there is no way to do that. This is stated in the documentation that the lowest zoom level can be 2, but also depends on the map size in pixels. On bigger screens you can have it limited from 3 or possibly higher.

欢迎您在gmaps-api-issues网站上发布功能请求.

You are welcome to post a feature request on gmaps-api-issues site.

我怀疑这种限制会导致不显示世界的一半以上,并且当前的实现无法正确处理它.看到此问题: http://code.google.com /p/gmaps-api-issues/issues/detail?id = 5285

I suspect this limitation is there to force not to show more than half of the world and current implementation cannot handle it correctly. See this issue: http://code.google.com/p/gmaps-api-issues/issues/detail?id=5285

这篇关于使用Maps API v2显示整个世界的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆