Getting rid of global yRestriction in Map.js (thanks jorix for the report).

git-svn-id: http://svn.openlayers.org/trunk/openlayers@11664 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2011-03-08 06:57:52 +00:00
parent 2f93c18bd5
commit 14324728ff

View File

@@ -1685,7 +1685,8 @@ OpenLayers.Map = OpenLayers.Class({
var x = hw + dx; var x = hw + dx;
var y = hh + dy; var y = hh + dy;
var wrapDateLine = this.baseLayer.wrapDateLine; var wrapDateLine = this.baseLayer.wrapDateLine;
var xRestriction = yRestriction = 0; var xRestriction = 0;
var yRestriction = 0;
if (this.restrictedExtent) { if (this.restrictedExtent) {
xRestriction = hw; xRestriction = hw;
yRestriction = hh; yRestriction = hh;