On Nov 15, 1:52 pm, Esa <esa.ilm...@gmail.com> wrote: > Each time you show a set of markers, you extend the bounds > > this.m_mapBounds.extend(markers[i].getPosition()); > > but it is never resetted like > > this.m_mapBounds = new google.maps.LatLngBounds();
I would suggest creating the bounds for each object when it is first processed, saving that bounds, then doing a union on the bounds of the objects that are currently visible, using that resulting bounds as the argument to fitBounds. -- Larry -- 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 google-maps-js-api...@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.