Latest web development tutorials

地圖API getCenter() 方法

Map() 構造器 Map()構造器

實例

返回地圖的當前中心的緯度/經度:

map.getCenter();

嘗試一下»

定義和用法

getCenter() 方法返回地圖的當前中心的緯度/經度。


語法

mapvariable.getCenter();


返回值

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


Map() 構造器 Map()構造器