Google Maps API Example - turning markers on and off with check boxes

Legend / Toggles
Red Marker Red Markers
Yellow Marker Yellow Markers
Blue Marker Blue Markers
Purple Marker Purple Markers
Orange Marker Orange Markers
Green Marker Green Markers
White Marker White Markers

This example uses calls documented in the API. For an example that uses the undocumented display(true), display(false) calls see this example. For a description of why you might want to use the undocumented version see this thread.
Valid XHTML 1.0 Transitional