I have a google map generated from a google spreadsheet using the
spreadsheet map wizard (http://gmaps-samples.googlecode.com/svn/trunk/
spreadsheetsmapwizard/makecustommap.htm) and would like to use check
boxes to turn on and off certain groups of markers by shared rank
number.

I have succeed in turning all markers on and off using the following
code:

function toggleHide() {
      for (var i = 0; i < cm_mapMarkers.length; i++) {
        var marker = cm_mapMarkers[i];
        if (marker.isHidden()) {
          marker.show();
        } else {
          marker.hide();
        }
    }
}

and then this checkbox that calls the function:
<input type="checkbox" id="barCheckbox" onclick="toggleHide()"
CHECKED/

I have tried modifying several tutorials to suit but have not succeed.
I hope someone can help.

The map is currently located at 
http://www.bemakeshift.co.uk/growsheffo/indexmap.html

Regards and thanks in anticipation

Adam
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to