“模板:Test”的版本间的差异

来自Jamesqi
跳转至: 导航搜索

第14行: 第14行:
 
       if (GBrowserIsCompatible()) {
 
       if (GBrowserIsCompatible()) {
 
         map = new GMap2(document.getElementById("map_canvas"));
 
         map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(39.917, 116.397), 13);
 
 
         geocoder = new GClientGeocoder();
 
         geocoder = new GClientGeocoder();
 
showAddress(address);
 
showAddress(address);
第31行: 第30行:
 
               var marker = new GMarker(point);
 
               var marker = new GMarker(point);
 
               map.addOverlay(marker);
 
               map.addOverlay(marker);
               marker.openInfoWindowHtml("地址:"+address+"<br>,电话:"+phone);
+
               marker.openInfoWindowHtml("地址:"+address+"<br>电话:"+phone);
 
             }
 
             }
 
           }
 
           }

2009年7月29日 (三) 00:07的版本

正在载入地图,请稍等...