Patch for #430 by Tim Schaub. Reviewed, passes all tests.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@2017 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-12-06 21:25:19 +00:00
parent 632a2bd123
commit 046fbf0662
+2 -2
View File
@@ -99,8 +99,8 @@ OpenLayers.Tile.prototype = {
}, },
getBoundsFromBaseLayer: function(position) { getBoundsFromBaseLayer: function(position) {
var topLeft = this.layer.map.getLonLatFromLayerPx(this.position); var topLeft = this.layer.map.getLonLatFromLayerPx(position);
var bottomRightPx = this.position.clone(); var bottomRightPx = position.clone();
bottomRightPx.x += this.size.w; bottomRightPx.x += this.size.w;
bottomRightPx.y += this.size.h; bottomRightPx.y += this.size.h;
var bottomRight = this.layer.map.getLonLatFromLayerPx(bottomRightPx); var bottomRight = this.layer.map.getLonLatFromLayerPx(bottomRightPx);