Awesome the help is much appreciated I did what you suggested just got
stuck on passing the completed array of markers to the clusterer you
made earlier. I think I just need a little more guidance.
On 2/26/2011 6:33 AM, Rossko wrote:
gotransform.com/maps/test2.htm
Learn to use the tools built into your browser, so that you can at
least see the javascript (not java!) errors that it is reporting.
I get
GOverlay is not defined
http://www.gotransform.com/maps/markerclusterer.js
as it happens I recognise GOverlay as a method that is used in Maps
API v2 but not in v3.
You are using the wrong cluster script version.
No-one could have guessed this without seeing your work.
Go to
http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/src/
and get the v3 version to replace your copy of markerclusterer.js
When you've fixed that, take the line where you define a new
MarkerClusterer() OUT of your marker-creating loop. You don't want a
clusterer made for each marker, you want one clusterer to manage all
your markers.
Create a MarkerClusterer() once, in the code where you create a map
once.
Next, you've got markers.push(marker), which is along the right lines
but has problems. You are already using something called 'markers' as
part of your XML parsing code, so don't mess with that. You need to
push your markers into some other array, perhaps 'myMarkerArray'
After the end of the marker creating for-loop, you need to pass that
completed array of markers to the clusterer you made earlier.
--
You received this message because you are subscribed to the Google Groups "Google
Maps JavaScript API v3" 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-js-api-v3?hl=en.