Hey everyone, Two popular questions I've seen asked in the group and also filed in our issue tracker are:
1) How do I add or remove overlays from my map? 2) How do I ensure only a single info window is open at a time? Here are two recently published demos which demonstrate how to do each. Clearing Overlays: http://gmaps-samples-v3.googlecode.com/svn/trunk/clear-all-overlays/clear-all-overlays.html Single InfoWindow: http://gmaps-samples-v3.googlecode.com/svn/trunk/single-infowindow/single-infowindow.html Adding or removing overlays is performed by calling the "setMap" function from the respective overlay object, e.g. Marker, Polyline, Polygon, etc. To make sure only a single info window is used, maintain a reference to a single InfoWindow object and call its "open" function, anchoring it to any MVCObject such as Marker, Polyline, Polygon, etc. Hope this helps! Dann -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
