Determine the corners coordinate in Google maps V3-Collection of common programming errors
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 (i.e. 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
Originally posted 2013-11-10 00:12:07.