Trachy
unread,Jul 7, 2010, 7:41:31 AM7/7/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Maps JavaScript API v3
Hello,
I try to convert my Google Maps V2 application in a GM V3 one.
In V2, I could retrieve easily data from xml with GXmlHttp.
It looked like :
// *******************************************************************
function recup_traitement_groupe_station(fichier) {
stations=[];
var request = GXmlHttp.create();
request.open("GET", fichier, true);
request.onreadystatechange = function() {
// si les data ont été chargées, le readystate passe à 4
if (request.readyState == 4) {
var xmlDoc = request.responseXML;
// Get markers array
var markers =
xmlDoc.documentElement.getElementsByTagName("marker");
nb_station= markers.length;
for (k = 0; k < markers.length; k++) {
stations[k] = new Station();
// Get marker attributes
stations[classe][k].code =
search_real_char(markers[k].getAttribute("code"));
stations[classe][k].libelle =
search_real_char(markers[k].getAttribute("libelle"));
}
traitement_groupe_station(nb_station);
}}
request.send(null);
return stations;}
// *******************************************************************
How can I do in V3, GXmlHttp doesn't exist ?
Thanks
Trachy