Hi Prashant,
one approach to make the markers disappear when uncheck the checkbox is to 
make them unvisible with  'setVisible(false)'.
To get all the markers of a category you need to put them in an array and 
go through all markers to make them invisible:

      for (var i=0; i<gmarkers.length; i++) {
          if (gmarkers[i].mycategory == category) {
            gmarkers[i].setVisible(false);
          }
        }

Have a look to the whole example 
here: http://www.ralf-wessels.de/test/apiv3/marker_categories.html

Ralf

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-maps-js-api-v3+unsubscr...@googlegroups.com.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
Visit this group at http://groups.google.com/group/google-maps-js-api-v3.
For more options, visit https://groups.google.com/d/optout.

Reply via email to