[OpenLayers-Commits] r2017 - trunk/openlayers/lib/OpenLayers
commits at openlayers.org
commits at openlayers.org
Wed Dec 6 16:25:20 EST 2006
Author: crschmidt
Date: 2006-12-06 16:25:19 -0500 (Wed, 06 Dec 2006)
New Revision: 2017
Modified:
trunk/openlayers/lib/OpenLayers/Tile.js
Log:
Patch for #430 by Tim Schaub. Reviewed, passes all tests.
Modified: trunk/openlayers/lib/OpenLayers/Tile.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Tile.js 2006-12-06 16:15:19 UTC (rev 2016)
+++ trunk/openlayers/lib/OpenLayers/Tile.js 2006-12-06 21:25:19 UTC (rev 2017)
@@ -99,8 +99,8 @@
},
getBoundsFromBaseLayer: function(position) {
- var topLeft = this.layer.map.getLonLatFromLayerPx(this.position);
- var bottomRightPx = this.position.clone();
+ var topLeft = this.layer.map.getLonLatFromLayerPx(position);
+ var bottomRightPx = position.clone();
bottomRightPx.x += this.size.w;
bottomRightPx.y += this.size.h;
var bottomRight = this.layer.map.getLonLatFromLayerPx(bottomRightPx);
@@ -112,7 +112,7 @@
} else {
bottomRight.lon = 180+bottomRight.lon+180;
}
- }
+ }
bounds = new OpenLayers.Bounds(topLeft.lon, bottomRight.lat, bottomRight.lon, topLeft.lat);
return bounds;
},
More information about the Commits
mailing list