Fixing typo of "resolution" in PanZoom -- this fixes panning up and down.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@7 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-05-12 20:09:43 +00:00
parent 0b5e49cd48
commit 9f29b0e9a6

View File

@@ -66,7 +66,7 @@ OpenLayers.Control.PanZoom.prototype =
var resolution = this.map.getResolution();
var center = this.map.getCenter();
this.map.setCenter(
new OpenLayers.LatLon(center.lat + (reslution * 50),
new OpenLayers.LatLon(center.lat + (resolution * 50),
center.lon
)
);
@@ -75,7 +75,7 @@ OpenLayers.Control.PanZoom.prototype =
var resolution = this.map.getResolution();
var center = this.map.getCenter();
this.map.setCenter(
new OpenLayers.LatLon(center.lat - (reslution * 50),
new OpenLayers.LatLon(center.lat - (resolution * 50),
center.lon
)
);