[OpenLayers-Commits] r11734 - trunk/openlayers/lib/OpenLayers/Tile
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Tue Mar 29 04:59:35 EDT 2011
Author: bartvde
Date: 2011-03-29 01:59:31 -0700 (Tue, 29 Mar 2011)
New Revision: 11734
Modified:
trunk/openlayers/lib/OpenLayers/Tile/Image.js
Log:
transitionEffect does not always work, thanks to Marco Nijdam for identifying the issue and thanks to Marc Pfister for the feedback on the dev list, p=me,r=fredj (closes #2848)
Modified: trunk/openlayers/lib/OpenLayers/Tile/Image.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Tile/Image.js 2011-03-29 08:44:18 UTC (rev 11733)
+++ trunk/openlayers/lib/OpenLayers/Tile/Image.js 2011-03-29 08:59:31 UTC (rev 11734)
@@ -52,14 +52,6 @@
isBackBuffer: false,
/**
- * Property: lastRatio
- * {Float} Used in transition code only. This is the previous ratio
- * of the back buffer tile resolution to the map resolution. Compared
- * with the current ratio to determine if zooming occurred.
- */
- lastRatio: 1,
-
- /**
* Property: isFirstDraw
* {Boolean} Is this the first time the tile is being drawn?
* This is used to force resetBackBuffer to synchronize
@@ -532,7 +524,7 @@
// if the ratio is not the same as it was last time (i.e. we are
// zooming), then we need to adjust the backBuffer tile
- if (ratio != this.lastRatio) {
+ if (ratio != 1) {
if (this.layer.transitionEffect == 'resize') {
// In this case, we can just immediately resize the
// backBufferTile.
@@ -575,7 +567,6 @@
this.backBufferTile.hide();
}
}
- this.lastRatio = ratio;
},
More information about the Commits
mailing list