Easy Tutorial
❮ Google Maps Api Key Google Maps Types ❯

Map API getCenter() Method

Map() Constructor

Example

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


Definition and Usage

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


Syntax


Return Value

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

Map() Constructor

❮ Google Maps Api Key Google Maps Types ❯