OpenLayers OpenLayers

Ticket #958 (closed bug: fixed)

Opened 1 year ago

Last modified 1 year ago

MaxScale problem in maps with units other than degrees

Reported by: openlayers Assigned to: euzuro
Priority: major Milestone: 2.6 Release
Component: Layer Version: 2.4
Keywords: Cc:
State:

Description

I have a map with units = m. I have some problems with the maxScale parameter, which is not functioning (i'm able to zoomin beyond the fixed limit). After some debugging I found that in initResolutions there is the following line confProps.minResolution =

OpenLayers.Util.getResolutionFromScale(confProps.maxScale);

instead of confProps.minResolution =

OpenLayers.Util.getResolutionFromScale(confProps.maxScale,

confProps.units);

Change History

09/10/07 14:32:25 changed by euzuro

  • status changed from new to assigned.

this is a good and valid report. i'll take this one on. just need to come up with a suitable test and should be good to go

10/10/07 00:49:37 changed by crschmidt

  • milestone set to 2.6 Release.

12/07/07 09:50:15 changed by crschmidt

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [5357]) Fix missing units param in call to getResolutionFromScale . This should have been fixed a while ago, but we were waiting on a test: Now that it's been reported by four different users, I'm just going to go ahead and fix it, grudgingly, rather than wait longer on a test. (Closes #958, #1117)