开发者

Find a gps position on a google map

开发者 https://www.devze.com 2023-02-10 04:11 出处:网络
I have a google map in my site. I enabled zoom and map mo开发者_运维知识库ving. How to find the gps position of left upper corner that is displayed currently ?The getBounds() method of the V3 API will

I have a google map in my site. I enabled zoom and map mo开发者_运维知识库ving. How to find the gps position of left upper corner that is displayed currently ?


The getBounds() method of the V3 API will return the bounding box data - the co-ordinates of the SW and NE corners of the current map.

The top left (NW) corner can of course then be easily derived.

0

精彩评论

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