Merge branch 'master' of github.com:openlayers/ol3

This commit is contained in:
Mike Adair
2012-06-22 10:53:17 -04:00
34 changed files with 730 additions and 360 deletions

View File

@@ -143,7 +143,7 @@ ol.Map.DEFAULT_CONTROLS = ["navigation"];
*/
ol.Map.prototype.getCenter = function() {
var proj = this.getUserProjection();
return this.center_.transform(proj);
return this.center_.doTransform(proj);
};
@@ -271,7 +271,7 @@ ol.Map.prototype.setCenter = function(center) {
proj = this.getUserProjection();
center.setProjection(proj);
}
this.center_ = center.transform(this.getProjection());
this.center_ = center.doTransform(this.getProjection());
};