Click here to read about this example in my blog

Dynamically Toggle Markers in Google Maps

This is a simple example of how to show and hide markers on a map. In this scenario everything works just as expected. When you've hidden the markers they stay hidden even if you zoom the map. If you on the other hand uses a library, like MarkerManager, to add the markers, it will not work quite as well, as seen in this example.