I have an application that uses the fitBounds() method to fit a map to two markers with a polyline between them. In June 2012, this seemed to work fine, but I now find that sometimes after calling fitBounds(), one or both of the markers are not redrawn. This happens especially often if I have zoomed to precisely locate one marker and the other marker is not within the bounds before calling bitBounds().
Slightly panning the map by hand causes the markers to be redrawn, as does adding map.panBy(1,0) after calling fitBounds(). It is not reasonable to ask a user to do the former, and the latter seems pretty hacky; is there a better way to do this? Also: often (but not always) the fitting process begins by going to max zoom and running a slow animation to reach the final viewport bounds. I don’t recall this happening in 2012. Is there a way to blank the map and cause a complete redraw rather than the slow animation? Jeff Conrad -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-maps-js-api-v3. For more options, visit https://groups.google.com/d/optout.
