> http://cinemamap.co.uk/
I never see any markers, but maybe I just don't know the right
postcode.
This looks very wrong :
GDownloadUrl("theatrephpsql.php", function(data) {
var xml = GXml.parse(data);
....
zoomA.push(marker);
});
var mm = new GMarkerManager(map, {borderPadding:1});
mm.addMarkers(zoomA,5,17);
addMarkers gets executed before the zoomA array has been populated.
As with any asynchronous function, if you want to use the data it
returns (in this case zoomA[]) you should use it inside the callback
function.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---