2
我有這樣的代碼來顯示地圖的網頁谷歌地圖:顯示地圖Via地址
var _map = new GMap2($get("gmap"));
var _latLng = new GLatLng(lat, lng);
_map.setCenter(_latLng, 11);
_map.addControl(new GLargeMapControl());
_map.addControl(new GMapTypeControl());
var _icon = new GIcon(G_DEFAULT_ICON);
var marker = new GMarker(_latLng);
_map.addOverlay(marker);
上,但我沒有爲某個地址地理編碼。 如何顯示通過地址的地圖。
+1:下面是另一個示例:http://stackoverflow.com/questions/2624833/how-do-i-add-google-maps-on-my-site – 2010-05-20 16:34:16
此鏈接上的示例非常清晰和簡單。 – 2012-12-19 22:10:20