地圖 API getZoom() 方法

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

實例

返回地圖的當前縮放級別:

map.getZoom();


定義和用法

getZoom() 方法返回地圖的當前縮放級別。


語法

mapvariable.getZoom();


返回值

描述
number 地圖的當前縮放級別。


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