Latest web development tutorials

Maps API getZoom () method

Map () constructor Map () constructor

Examples

Returns map's current zoom level:

map.getZoom();

try it"

Definition and Usage

getZoom () method returns the map's current zoom level.


grammar

mapvariable.getZoom();


return value

描述
number 地图的当前缩放级别。


Map () constructor Map () constructor