开发者

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

开发者 https://www.devze.com 2023-04-04 11:11 出处:网络
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

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 calcul开发者_C百科ate center position based on map area?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号