Make more Loc tests pass.

This commit is contained in:
Tom Payne
2012-06-19 12:33:59 +02:00
parent 95fe8762da
commit ef83910c3d
3 changed files with 61 additions and 34 deletions

View File

@@ -16,6 +16,12 @@ ol.Map = function() {
*/
this.projection_ = new ol.Projection();
/**
* @private
* @type {ol.Projection}
*/
this.userProjection_ = new ol.Projection();
/**
* @private
* @type {ol.Loc}
@@ -47,6 +53,14 @@ ol.Map.prototype.getProjection = function() {
};
/**
* @return {ol.Projection} User projection.
*/
ol.Map.prototype.getUserProjection = function() {
return this.userProjection_;
};
/**
* @return {number} Zoom.
*/
@@ -75,6 +89,16 @@ ol.Map.prototype.setProjection = function(projection) {
};
/**
* @param {ol.Projection} userProjection User projection.
* @return {ol.Map} This.
*/
ol.Map.prototype.setProjection = function(userProjection) {
this.userProjection_ = userProjection;
return this;
};
/**
* @param {number} zoom Zoom.
* @return {ol.Map} This.