2013-04-12 84 views

回答

1

這並不難,守bounds_changed -event地圖,併火災時檢索地圖的屬性,並將其分配到的位置,對象的哈希屬性:

google.maps.event.addListener(map, 'bounds_changed',function(){ 
     location.hash='lat='+this.getCenter().lat().toFixed(6)+ 
        '&lng='+this.getCenter().lng().toFixed(6)+ 
        '&zoom='+this.getZoom(); 

    }); 
+0

太棒了!而已!永恆的感激之情:) – Filipe

相關問題