Google map v2 api: how to show a specific map area

老子叫甜甜 提交于 2019-12-12 04:45:54

问题


I am using google map api v2. I'd like to show a specific map area based on map bound (northeast and southwest coordinates). However, google map api v2 only supports setCenter() method. Is there any formula to calculate center position based on map area?


回答1:


Use the map's GetBounds() method from which you can get the center along with other information.



来源:https://stackoverflow.com/questions/7387003/google-map-v2-api-how-to-show-a-specific-map-area

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!