You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-map...@googlegroups.com
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.