On May 13, 1:42 pm, Torben <[email protected]> wrote:
> I've tried to do that by adding:
>
> markers = [];
> markerCluster = null;
>
> - but its still not working properly....

I think the issue is this line:
  var markerCluster = new MarkerClusterer(map, markers);
because that creates a markerCluster which is local to that particular
instance of the readMap() function. It's a different markerCluster
which is referenced by your global variable. In fact that global
variable is *always* null because it's never updated with anything
else.

You could remove your
  markerCluster = null;
if you also removed the "var" keyword from the other line I quoted so
that it doesn't define a new variable but assigns a new value to the
existing global one.

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to