OpenLayers OpenLayers

Ticket #1423 (closed bug: wontfix)

Opened 5 months ago

Last modified 1 month ago

restrictedExtent allows to zoomout even if bounds constraints are not satisfied

Reported by: pgiraud Assigned to:
Priority: major Milestone:
Component: Map Version: 2.5
Keywords: Cc:
State:

Description

In my opinion, restrictedExtent test in MoveTo is to lazy because it allows user to zoomout (or zoomToMaxExtent) event if if new extent is out the restricted one.

Change History

03/07/08 10:36:29 changed by tschaub

Yeah, this all started about 900 tickets ago (see #340). The restrictedExtent property was a compromise. One issue with the strict interpretation (which is what is being proposed here again) is with variable sized viewports. If you're really strict, then you check the extent when a window resize occurs. Because it's possible to violate the extent with a resize, you'd end up zooming in on a resize. This, I think, goes too far - and goes against what a user expects. It is also an issue when someone saves a map (context), reloads it, and finds they are looking at different data (because their viewport is a different size and the strict extent interpretation might kick in).

I think it's a good compromise to use a loose interpretation (what restrictedExtent does for map navigation). This can be used in combination with a maxResolution constraint to satisfy most conditions. Given the range of reasonable display sizes, with restrictedExtent and maxResolution, you can keep people within the bounds of your data (which should *always* be bigger than restrictedExtent).

07/04/08 02:24:21 changed by euzuro

  • status changed from new to closed.
  • resolution set to wontfix.

sounds like (from tim's explanation) this is an issue that has been brought up before, and decided on.

I'm going to close this as "won't fix" for now for the sake of cleaning house... if we want to revisit it, feel free to reopen.