On Dec 6, 5:47 am, fenacol <[email protected]> wrote:
> Hello Rossko,
>
> Tried to move the array but no luck.
> Getting a lot of strange js errors of parts that are otherwise fine.
>
> Would like to know where the point is where the markers are created.
> Set the "markers array"globel.
> But getting error on "markers.pusch(marker)" is not a function.

I assume that is a typo

Line: 145
Error: Object doesn't support this property or method

markers.push(marker);
(so it isn't a typo)

But...

markers at that point is an object (it was returned by:
xml.documentElement.getElementsByTagName("marker");

so it doesn't have a .push method

try giving the global markers a unique name (like gmarkers...)

  -- Larry

>
> Don't seem to get the logic of the Sequens.
>
> with regards,
>
> Erwin
>
> On 6 dec, 02:10, Rossko <[email protected]> wrote:
>
> > > As i see it markerclusterer shows my icons but does not cluster.
>
> > This line in your createMarker function -
> >     var markerCluster = new MarkerClusterer(map, markers);
> > creates a new clusterer every time you create a marker, and adds just
> > one marker to each one.
>
> > Set just one clusterer up outside of your marker creating loop, and
> > populate it with your array after all the marker creation has finished
> > i.e. at the end of your GDownloadUrl routine.

--

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