Re: Info all coming on Last Marker
It's basically the same type of problem, I think. Your problem will go
away if you stick the stuff
var marker = new GMarker(point, icon);
var html = markers[i].getAttribute("airport");
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(html); });
map.addOverlay(marker);
}
into a function or put stuff into a function. Or change var marker...
to var gmarker[i]
------------------------------
http://www.wilsonvisuals.com/maps/
0 Comments:
Yorum Gönder
<< Home