On Nov 24, 12:41 pm, "[email protected]" <[email protected]> wrote: > On Nov 24, 12:23 pm, nimrod <[email protected]> wrote: > > > Dear all, > > > I've come to a point when I realize that I need the input and help > > from the experts... > > > My objective is to create a map that shows clusters of markers AND let > > the user toggle between different categories (type). I have a working > > map with the clusters and I can not get the combined map to work. > > > I have tried to reuse this > > example:http://www.econym.org.uk/gmap/categories.htm > > > The link to the map > > is:http://www.g8journey.com/destinations/destinations_main.php > > I get a javascript error: > > Line: 28 > Error: 'icon' is undefined > (you commented out its definition, you need to either leave that line > or comment out the next also) > > If I click on one of your check boxes, I get another javascript error: > Line: 56 > Error: 'gmarkers' is undefined > (it is not defined, needs to be global) > > These look like they should be fairly obvious if you are using the > javascript console in any reasonable browser or have error reporting > turned on in IE. > > -- Larry > > > > > > > I have also a working map with only the clusters > > at:http://www.g8journey.com/destinations/destinations_main2.php > > > The markers are fetched from the DB and the type is also stored in the > > XML-file for each marker as "type". > > > I am grateful for all input and suggestions that you can give me.
After looking at your code a little more and thinking about it, the clusterer is hiding and showing markers itself, you will proabably need to keep separate arrays for each category and add the appropriate array when the category is checked. I don't think the clusterer really supports removing markers, so you will probably need to clear them all out when someone unchecks a category and re-add the checked categories (but I might be wrong). I think you have your work cut out for you. -- Larry > > > /Nimrod- Hide quoted text - > > - Show quoted text - -- 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.
