I'm a beginner developer in Google map api.
I have tested a script found in your site.
I want to put markers then display a message belong each markers , so
I proceeds like this :
----------------------------------------------------------
GDownloadUrl("donnees.xml", function(data, responseCode) {
var xml = GXml.parse(data);
var markers = xml.documentElement.getElementsByTagName("marker");
var point= Array();
var mt= Array();
for (var i = 0; i < markers.length; i++) {
point[i] = new GLatLng(parseFloat(markers[i].getAttribute
("lat")),parseFloat(markers[i].getAttribute("lng")));
mt[i] = new GMarker(point[i]);
map.addOverlay(mt[i]);
mt[i].openInfoWindowHtml("hello");
// CreerMarker(markers[i].getAttribute("te"),markers[i].getAttribute
("lat"),markers[i].getAttribute("lng"));
}
});
-----------------------------------------------------------
The problem is this code displays all the markers but only one message
is displayed.
How can I do to display the message for all the markers?
Thanks.
--
You received this message because you are subscribed to the Google Groups "Google Maps API" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
No comments:
Post a Comment