The only awkward bit is handling the situation when the user switches off a checkbox. One way to cope with that is to .hide() *all* your markers and then loop through all the checkboxes that are switched on calling .show() on the associated markers.
Remember to use .hide() and .show(), not .addOverlay() and .removeOverlay(). Because they're a lot faster and it is safe to call .hide() on a hidden marker and .show() on a visible marker, whereas the API fails if you call addOverlay() twice or removeOverlay() twice. Remember that MSIE always honours the checkbox "checked" attribute, but Firefox restores the selections that the user had previously checked when the page is refreshed. So don't make any assumptions about which checkboxes are checked when the page opens. -- Mike Williams http://econym.org.uk/gmap --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
