Incorporating @elemoine's review comments

This commit is contained in:
ahocevar
2013-02-14 10:11:48 +01:00
parent 774e983631
commit d0249643b3
4 changed files with 74 additions and 15 deletions

View File

@@ -2022,7 +2022,7 @@
map.applyTransform = function(x, y, scale) {
log.push([x || map.layerContainerOriginPx.x, y || map.layerContainerOriginPx.y, scale]);
OpenLayers.Map.prototype.applyTransform.apply(this, arguments);
}
};
moved = {};
map.zoomToExtent(new OpenLayers.Bounds(-1, -1, 1, 1));
@@ -2091,7 +2091,7 @@
map.applyTransform = function(x, y, scale) {
log.push([x || map.layerContainerOriginPx.x, y || map.layerContainerOriginPx.y, scale]);
OpenLayers.Map.prototype.applyTransform.apply(this, arguments);
}
};
map.moveByPx(-10, -10);
t.eq(log[0][0], 10, 'layer container left correct');