I use this
var allMap = new GMaps({
el: '#map',
zoom: 14,
lat: userLat,
lng: userLng,
zoom_changed: function(e) {
alert(allMap.zoom);
}
});
but I allways get alerted "14". I want to cacth specific zoom level and remove all marker if zoomed to much out. So I want to read the current(changed) zoom level on zoom_changed event.
在地图对象上使用getZoom()方法返回当前缩放级别。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.