[Google Maps API v3] Re: how do I map.fitbounds() to rendered directions

2010-06-01 Thread gp-v3
y the directionsRenderer. On Jun 1, 7:30 pm, gp-v3 wrote: > Thanks William. > > On Jun 1, 2:43 am, William wrote: > > > On Jun 1, 3:31 pm, gp-v3 wrote: > > > > That is true... but is there a better way to have the map re fit the > > >directionsafter a res

[Google Maps API v3] Re: how do I map.fitbounds() to rendered directions

2010-06-01 Thread gp-v3
Thanks William. On Jun 1, 2:43 am, William wrote: > On Jun 1, 3:31 pm, gp-v3 wrote: > > > That is true... but is there a better way to have the map re fit the > >directionsafter a resize trigger?  Fitting to the whole direction > > polyline would be nice, but I will s

[Google Maps API v3] Re: how do I map.fitbounds() to rendered directions

2010-06-01 Thread gp-v3
Thanks Ben. That would be awesome On Jun 1, 1:45 am, Ben Appleton wrote: > I see.  We'll look at exposing the bounds on the DirectionsRenderer.  Then > you could simply call > map.fitBounds(renderer.get('bounds')); > > On Tue, Jun 1, 2010 at 3:31 PM, gp-v3 wro

[Google Maps API v3] Re: how do I map.fitbounds() to rendered directions

2010-05-31 Thread gp-v3
ole route though. > > On 1 Jun 2010 03:50, "gp-v3" wrote: > > Is it possible to get the markers associated with the directions to > create a directions bound using the start and finish markers? > > On May 29, 2:54 pm, gp-v3 wrote: > > > How do you make it r

[Google Maps API v3] Re: how do I map.fitbounds() to rendered directions

2010-05-31 Thread gp-v3
Is it possible to get the markers associated with the directions to create a directions bound using the start and finish markers? On May 29, 2:54 pm, gp-v3 wrote: > How do you make it redo the bounds on map resize though?  The example > doesn't refit the bounds when you resize the m

[Google Maps API v3] Re: how do I map.fitbounds() to rendered directions

2010-05-29 Thread gp-v3
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

[Google Maps API v3] how do I map.fitbounds() to rendered directions

2010-05-28 Thread gp-v3
Hi, I don't really think this question needs a link to my map because I have no idea where to start, but before someone asks my map is currently on a local test server so I can't provide a link that will work. The final map will be publicly accessible and conform to the ToS. Here is my question: