On Dec 8, 9:13 pm, arclyte <[email protected]> wrote: > > map.fitBounds(bounds); //works > map.panToBounds(bounds); //doesn't work >
I also didn't manage to make it work inline on page load. It behaves perfect when triggered by a suitable event. Doesn't do anything useful, but demonstrates what happens when the bounds does not fit into the viewport: <button onclick="map.panToBounds(map.getBounds())">Pan</button> -- 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.
