[OpenLayers-Trac] Re: [OpenLayers] #3485: Zoom level mismatch with
Layer.Bing and overlays
OpenLayers
trac-20090302 at openlayers.org
Tue Sep 6 15:36:15 EDT 2011
#3485: Zoom level mismatch with Layer.Bing and overlays
------------------------+---------------------------------------------------
Reporter: nrenner | Owner: ahocever
Type: bug | Status: new
Priority: major | Milestone: 2.11 Release
Component: Layer.Bing | Version: 2.11 RC3
Keywords: | State:
------------------------+---------------------------------------------------
Comment(by bartvde):
The following change removes the offset, however when zooming to max
extent it now gets one level too far:
{{{
Index: ../lib/OpenLayers/Layer/Bing.js
===================================================================
--- ../lib/OpenLayers/Layer/Bing.js (revision 12328)
+++ ../lib/OpenLayers/Layer/Bing.js (working copy)
@@ -142,7 +142,7 @@
};
this.addOptions({
maxResolution: Math.min(
- this.serverResolutions[res.zoomMin], this.maxResolution
+ this.serverResolutions[0], this.maxResolution
),
zoomOffset: res.zoomMin,
numZoomLevels: Math.min(
}}}
--
Ticket URL: <http://trac.openlayers.org/ticket/3485#comment:3>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list