[OpenLayers-Trac] Re: [OpenLayers] #3338: No way to restrict zoom
levels
OpenLayers
trac-20090302 at openlayers.org
Thu Jun 16 16:38:58 EDT 2011
#3338: No way to restrict zoom levels
------------------------+---------------------------------------------------
Reporter: ahocevar | Owner: ahocevar
Type: feature | Status: new
Priority: minor | Milestone: 2.11 Release
Component: Layer.Bing | Version: 2.10
Keywords: | State: Commit
------------------------+---------------------------------------------------
Changes (by tschaub):
* owner: ahocever => ahocevar
* state: Review => Commit
Comment:
I think this is a great change. I agree that we should use
{{{maxResolution}}} and {{{numZoomLevels}}} instead of
{{{restrictedMinZoom}}}.
I've attached an updated patch with a few changes:
* patch applies at r12088
* the isValidZoomLevel asserts that -1 is '''not''' valid (was failing
before by asserting that valid was true)
* updated docs in bing-tiles-restrictedzoom.html to suggest using
maxResolution and numZoomLevels instead of restrictedMinZoom
* updated bing-tiles-restrictedzoom.js to use the same layer with three
different sets of resolutions, more clearly demonstrating what this patch
allows
Tests pass and examples work in Chrome 12 and IE 6. Please commit (after
#3342).
--
Ticket URL: <http://trac.openlayers.org/ticket/3338#comment:4>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list