Map fixes.

This commit is contained in:
Tom Payne
2012-06-19 13:08:50 +02:00
parent f435bb1874
commit 7358529c4e
3 changed files with 34 additions and 22 deletions

View File

@@ -14,13 +14,13 @@ ol.Map = function() {
* @private
* @type {ol.Projection}
*/
this.projection_ = new ol.Projection();
this.projection_ = new ol.Projection('EPSG:900913');
/**
* @private
* @type {ol.Projection}
*/
this.userProjection_ = new ol.Projection();
this.userProjection_ = new ol.Projection('EPSG:4326');
/**
* @private
@@ -93,7 +93,7 @@ ol.Map.prototype.setProjection = function(projection) {
* @param {ol.Projection} userProjection User projection.
* @return {ol.Map} This.
*/
ol.Map.prototype.setProjection = function(userProjection) {
ol.Map.prototype.setUserProjection = function(userProjection) {
this.userProjection_ = userProjection;
return this;
};