Fix the calls of .transform in internal code. It should be .doTransform.

This commit is contained in:
Petr Pridal
2012-06-22 14:53:12 +02:00
parent 6f9f1783bd
commit 6cfb942ff9
2 changed files with 7 additions and 7 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());
};