[問題] 地圖問題

看板Ajax作者 (Monday's pudding)時間17年前 (2008/07/10 23:44), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
第一次在這個板問問題~ 如有發言不當請見諒!!! 板上各位大大~我想請問一下,關於gmap的語法問題: 這是 urmap的語法: if(count > 0){ for(var i = 0; i < count; i++){ var point = new ULatLng(locationArray[i].latitude, locationArray[i].longitude); var description = "緯度:" + locationArray[i].latitude + "<br>經度:" + locationArray[i].longitude; !!!! var marker = new UMarker(point, myIcon, locationArray[i].name,description); map.addOverlay(marker); } 假如要修改成gmap的語法,請問一下,下面的地方,有哪裡不當,還需要修改的? if(count > 0){ for(var i = 0; i < count; i++){ var point = new GLatLng(locationArray[i].latitude, locationArray[i].longitude); var marker = new GMarker(point,myIcon); GEvent.addListener(marker, "click" ,function() { map.openInfoWindowHtml(point,description); }); map.addOverlay(marker); } 拜託~謝謝><" -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.166.96.157
文章代碼(AID): #18TYvi-p (Ajax)
文章代碼(AID): #18TYvi-p (Ajax)