[OpenLayers-Commits] r12308 -
sandbox/camptocamp/clientzoom/lib/OpenLayers/Layer
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Wed Aug 31 16:17:29 EDT 2011
Author: erilem
Date: 2011-08-31 13:17:29 -0700 (Wed, 31 Aug 2011)
New Revision: 12308
Modified:
sandbox/camptocamp/clientzoom/lib/OpenLayers/Layer/Grid.js
Log:
Grid.moveTo - avoid calling map.getResolution twice
Modified: sandbox/camptocamp/clientzoom/lib/OpenLayers/Layer/Grid.js
===================================================================
--- sandbox/camptocamp/clientzoom/lib/OpenLayers/Layer/Grid.js 2011-08-31 18:56:34 UTC (rev 12307)
+++ sandbox/camptocamp/clientzoom/lib/OpenLayers/Layer/Grid.js 2011-08-31 20:17:29 UTC (rev 12308)
@@ -238,7 +238,7 @@
var forceReTile = !this.grid.length || zoomChanged;
var resolution = this.map.getResolution(),
- serverSupportedResolution = this.getServerSupportedResolution();
+ serverSupportedResolution = this.getServerSupportedResolution(resolution);
if (resolution !== serverSupportedResolution) {
bounds = this.map.calculateBounds(null, serverSupportedResolution);
}
More information about the Commits
mailing list