[OpenLayers-Trac] [OpenLayers] #1124: FixedZoomLevels.js doesn't properly set the resolutions array
OpenLayers
trac at openlayers.org
Thu Nov 29 16:52:28 EST 2007
#1124: FixedZoomLevels.js doesn't properly set the resolutions array
------------------------------------+---------------------------------------
Reporter: elemoine | Owner: elemoine
Type: bug | Status: new
Priority: major | Milestone: 2.6 Release
Component: Layer.FixedZoomLevels | Version: SVN
Resolution: | Keywords: review
------------------------------------+---------------------------------------
Comment (by tschaub):
Thought I could give a quick review, but I'm confused by two things:
1) Why do we have MIN_ZOOM_LEVEL, MAX_ZOOM_LEVEL, and RESOLUTIONS? Is
MAX_ZOOM_LEVEL ever different than MIN_ZOOM_LEVEL + RESOLUTIONS.length -
1? If not, why not dispense with MAX_ZOOM_LEVEL entirely. And then,
isn't MIN_ZOOM_LEVEL really about a zoomOffset? Like, in OL we use 0
based zoom, but somewhere else they use 1 based zooms - so we always want
to add 1. Maybe this is way off - I'm just confused why we can't just use
resolutions. Since maintaining zoom number when switching layers has no
meaning, I like the idea of keeping resolution constant. Maybe this is
happening and I just need a lesson on fixed zoom levels.
2) Why is the MAX_ZOOM_LEVEL 17 for VirtualEarth while there are only 16
items in RESOLUTIONS? Again, probably my lack of understanding on this
fixed stuff, but I'm curious.
--
Ticket URL: <http://trac.openlayers.org/ticket/1124#comment:3>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list