I want to optimize the display of a route and an infowindow but am not sure how best to go about it.
If I fitBounds for my route first the opening of the infowindow can cause part of the route to be shifted off the map while if I open the infowindow before fitBounds the window can shift off the screen. Is there any easy way to 'reserve' a bit of space above the route to minimize the chance that the map will need to move? I could add a dummy spot to the bounds but I don't think I can easily calculate where the top of the infowindow would appear to be located on the map. Any ideas? -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/LvUwoTrv3dAJ. 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.
