Well, that's it fixed with a little moving of code (I presume it was
working sporadically due to caching arrays and picking them up next
time around - but I shall not dwell on that, I'll just watch where I'm
putting things next time).

Your time is _very_ much appreciated, thank you.

Philip



On Sep 25, 9:57 pm, Rossko <[email protected]> wrote:
> >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
-~----------~----~----~----~------~----~------~--~---

Reply via email to