You can reset m_mapBounds (by setting LatLngBounds to null) before each new call for markers is made:
m_mapBounds = new google.maps.LatLngBounds(null); On Monday, November 15, 2010 3:58:33 PM UTC-5, CSharp wrote: > > I currently set fitBounds for sets of markers so that the map can pan and > zoom in or out to fit the set of markers on the map. But in doing that, > when the markers are de-selected from the list and the map is zoomed out > based on the fitBounds, I noticed that the fitBounds does not zoom back in > on one route that is re-selected and shown again. It seems that the > fitBound on a map occurs as a one time event to try and fit all markers on > a map, but not repeated again on re-showing of markers. Is there a way to > make the fitBounds for a map to re-zoom in after the map has zoomed out or > make the fitBounds zoom in and out according to the sets of markers that > are displayed? > > Here's my page: http://www.mentoreng.com/testing/maps/public/map2.html > > > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/HWIvSgNIayEJ. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.