[Google Maps API v2] marker checkbox with dropdown toggle
Hey API mappers,
First off, my link: http://ballonawatershed.org/subpage4.html
Background: I have both markers and polygons for the same locations
because of small project areas and comparatively large spatial scales.
I have achieved the ability to toggle both (markers & polygons)
simultaneously based on user input from drop-downs.
Issue: I want to provide users the ability to completely remove the
markers (see only the polygons) via a checkbox.
I am having difficulty with the arrangement because I am unsure if I
should use the removeOverlay() or markers.hide()/ show() method and
where to place the correct method (in its own function, or with the
createMarker function so it knows all the properties to Overlay).
I've gotten it to the point where I can turn the markers on/off
depending on whether I make the designate the checkbox as "checked" or
not
Thought it was time to call in the big guns...the Google maps API
forum!!
Thanks in advance everyone,
Ivan D.
--
You received this message because you are subscribed to the Google Groups "Google Maps API V2" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home