简体   繁体   中英

Determine the corners coordinate in Google maps V3

How could I determine the visible map corner coordinate: 在此输入图像描述

Use the getBounds() method of your map, which returns a LatLngBounds object.

Returns the lat/lng bounds of the current viewport. If the map is not yet initialized (ie the mapType is still null), or center and zoom have not been set then the result is null or undefined.

Maps V3 Javascript API docs

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM