X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR BOOTSTRAP XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

Maps API getBounds() Method

Map() Constructor Map() Constructor

Example

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

map.getBounds();

Try it yourself »

Definition and Usage

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


Syntax

mapvariable.getBounds();


Return Values

Value Description
(south-west latitude, longitude),(north-east latitude, longitude) Specifies a rectangle from the points at its south-west and north-east corners


Map() Constructor Map() Constructor


Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook