How do you make it redo the bounds on map resize though? The example doesn't refit the bounds when you resize the map (firefox 3.5.9). Is there an easy way to get at the directions bounds so I could use the fitBounds method?
The reason I need to do this is because of the way I show the user the directions. I resize the map when the directions are rendered to fit side by side with the directions. So every time the user gets directions the map is resized so that the directions and map can be side by side, but when there are no directions the user gets a map that fills the whole div. Thanks On May 28, 8:52 pm, Rossko <[email protected]> wrote: > > How do I create a bounds object for directions so I can autofit (using > > map.fitBounds(bounds)) the map to the directions? Is there an easier > > way to make my map fit the directions than doing it that way? > > The renderer pretty much does it by > itselfhttp://code.google.com/apis/maps/documentation/javascript/examples/di... > unless you tell it not > tohttp://code.google.com/apis/maps/documentation/javascript/reference.h... -- 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.
