Hi All,

I'm trying to limit the map viewport range in V3.
This was easy in V2: getMinimumResolution & getMaximumResolution

However I'm unsure how to achieve this in V3.
I have tried using the 'bounds_changed' event to restrict viewport.
It kind of works but the map is dragable past the bounds then it
adjusts position correctly.
It also behaves strange sometimes and has a wobble like effect.
My event handler code is:

if (!range_bounds.contains(map.getBounds().getNorthEast()) || !
range_bounds.contains(map.getBounds().getSouthWest())) {
                map.panToBounds(range_bounds);
}

Any ideas?
Help greatly appreciated.

Bob.

-- 
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.

Reply via email to