Latest web development tutorials

Maps API getCenter () method

Map () constructor Map () constructor

Examples

Returns the current map center latitude / longitude:

map.getCenter();

try it"

Definition and Usage

getCenter () method returns the current map center latitude / longitude.


grammar

mapvariable.getCenter();


return value

描述
latitude, longitude 地图的当前中心的纬度/经度。


Map () constructor Map () constructor