> I leave my
> examplehttp://iscchavez.jebax.com.mx/MapGoogleEjemplos/proyectoPHPMySql/copi
> ...
Yes, it is because of GDownloadUrl being asynchronous.
Don't do
var marcadores = GDownloadUrl("phpsqlajax_genxml2.php", function
(data, responseCode){
....
batch.push(marker);
}
return batch;
Try
GDownloadUrl("phpsqlajax_genxml2.php", function(data, responseCode)
{
....
batch.push(marker);
}
mgr.addMarkers(batch) ;
return ;
having previously set up your mgr to be ready for markers
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en.