我被JavaScript工作的Android應用程序,我想知道我怎麼能隱藏地圖標記,當我縮小小於15谷歌地圖,此代碼,我用:如何在縮小時隱藏標記?
function success1(position) {
var bangalore = { lat: 24.7511, lng: 46.6568 };
var gift = { lat: 24.7906, lng: 46.6312 };
var map = new google.maps.Map(document.getElementById('mapp'), {
zoom: 17,
streetViewControl: false,
panControl: false,
disableDoubleClickZoom: true,
TiltGestures: false,
AllGestures: false,
ZoomGestures: false,
ScrollGestures: false,
zoomControl: false,
scrollwheel: false,
center: bangalore
});
var image = 'http://iconbug.com/download/size/32/icon/7605/yellow-gift-box/';
zoom = map.getZoom();
var zoom = map.getZoom();
var beachMarker = new google.maps.Marker({
position: gift,
map: map,
icon: image,
});
}