Map APIgetCenter()Methods

Map() constructor

Example

Returns the latitude/longitude of the map's current center:

map.getCenter();

Try it Yourself »

Definition and Usage

The getCenter() method returns the latitude/longitude of the map's current center.


Syntax

mapvariable.getCenter();


Return Value

Value Description
latitude, longitude Latitude/longitude of the map's current center.


Map() constructor

other extensions