You can pass the marker itself as an object to a class that you define. In the class you can have a marker property where you assign the marker itself and your boolean value. But you can easily call whether the marker is visible or not by checking the map property of the marker itself. If marker.getMap == null then the marker is not displayed on your map. You also have your getVisible method.
On Mon, Aug 2, 2010 at 2:40 PM, doug <doug.ant...@gmail.com> wrote: > Hi, > I appreciate the API is for competent programmers but I'm doing my > best to improve myself :-) > > Is it possible to add another property to a marker? I'd like to add a > boolean value called markerHidden for use with marker clusterer. I'm > developing a map with selectable categories of markers and the > clustering makes all of the markers visible by setting the visible > property. I'm working on a small mod to only make them visible if they > haven't been explicitly set to hidden. > > Hope that all makes sense! > > Regards > Doug > > -- > 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 > google-maps-js-api...@googlegroups.com. > To unsubscribe from this group, send email to > google-maps-js-api-v3+unsubscr...@googlegroups.com<google-maps-js-api-v3%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > -- 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 google-maps-js-api...@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.