On Jun 1, 3:31 pm, gp-v3 <[email protected]> wrote: > That is true... but is there a better way to have the map re fit the > directions after a resize trigger? Fitting to the whole direction > polyline would be nice, but I will settle for anything right now. >
you can iterate through all points in the path, extend the bounds to each point, then use this bounds when the div is resized. But I'm not sure when exactly to call "map.fitBounds()" see this map for an example, by clicking the "Resize Map" button after creating directions: http://www.william-map.com/20100601/2/map.htm ... -- 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.
