[OpenLayers-Trac] [OpenLayers] #1243: allow for non-discrete resolution/zoom levels (fractional zoom)
OpenLayers
trac at openlayers.org
Wed Jan 9 02:49:57 EST 2008
#1243: allow for non-discrete resolution/zoom levels (fractional zoom)
----------------------+-----------------------------------------------------
Reporter: tschaub | Owner: tschaub
Type: feature | Status: assigned
Priority: minor | Milestone:
Component: Map | Version: 2.5
Resolution: | Keywords:
State: |
----------------------+-----------------------------------------------------
Comment (by tschaub):
I think this is a fairly non-invasive change to get this functionality.
The things it does change aren't liable to haunt us (in my opinion). If
an app designer sets map.fractionalZoom to true, they should know not to
access layer.resolutions[zoom] directly.
I added a map.allowFracZoom method. I don't necessarily like this, but it
makes things degrade well for commercial layers. The part I don't like is
the check for a RESOLUTIONS constant. But I like less the alternative of
modifying anything in the FixedZoomLevels layers.
(As an aside, I'm also curious about the this.resolutions != null checks
in FixedZoomLevels. Since all the classes in our lib that inherit from
FZL have a RESOLUTIONS constant, and initResolutions sets resolutions, I
don't immediately see when this condition would ever be met. But I'll
leave that for elsewhere.)
--
Ticket URL: <http://trac.openlayers.org/ticket/1243#comment:6>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list