2013-06-11 26 views

回答

2

寄存器變焦監聽器,隱藏/顯示根據變焦水平折線:

google.maps.event.addListener(map, 'zoom_changed', function() { 
    if (map.getZoom()>=10) 
    polyline.setMap(map); 
    else 
    polyline.setMap(null);  
}); 
相關問題