On May 14, 1:17 pm, nimrod <[email protected]> wrote:
>
> The GDownloadUrl(url,processMyData) gets the data from the specific
> URL. It "send" it to the processMyData-function. That functions
> process the data and should display the markers on the map.
>
> Is that correct?
Yes.
> I've progressed one step and FF is not liking that var markerCluster
> not is defined. I have markerCluster in the processMyData-function but
> the map-argument is defined in the initialize()-function. Is that why
> FF is complaining about markerCluster?
Yes. Or nearly, anyway.
I would suggest adding these lines outside ANY function:
var map;
var markerCluster;
then move your existing lines which start like that inside the
intialize() function but remove the "var" keyword.
map = new GMap2(document.getElementById('map'));
markerCluster = new MarkerClusterer(map, markers);
What that does is make "map" and "markerCluster" into global
variables, which are available to any function. They are then assigned
values in the initialize() function.
Andrew
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---