[問題] 地圖問題
第一次在這個板問問題~
如有發言不當請見諒!!!
板上各位大大~我想請問一下,關於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
Ajax 近期熱門文章
PTT數位生活區 即時熱門文章
41
173