Easy Tutorial
❮ Google Maps Ref Home ❯

Map API getBounds() Method

Map() Constructor

Example

Returns the south-west latitude/longitude and north-east latitude/longitude of the current viewport:


Definition and Usage

The getBounds() method returns the south-west latitude/longitude and north-east latitude/longitude of the current viewport.


Syntax


Return Value

Value Description
(south-west latitude, longitude),(north-east latitude, longitude) Defines a rectangle from the south-west and north-east corners of the point.

Map() Constructor

❮ Google Maps Ref Home ❯