interim map test updates
This commit is contained in:
@@ -20,7 +20,7 @@ ol.Map = function() {
|
||||
* @private
|
||||
* @type {ol.Loc}
|
||||
*/
|
||||
this.location_ = new ol.Loc(0, 0);
|
||||
this.center_ = new ol.Loc(0, 0);
|
||||
|
||||
/**
|
||||
* @private
|
||||
@@ -28,6 +28,12 @@ ol.Map = function() {
|
||||
*/
|
||||
this.zoom_ = 0;
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {number}
|
||||
*/
|
||||
this.numZoomLevels_ = 22;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -55,6 +61,14 @@ ol.Map.prototype.getZoom = function() {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @return {number} number of zoom levels.
|
||||
*/
|
||||
ol.Map.prototype.getNumZoomLevels = function() {
|
||||
return this.numZoomLevels_;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {ol.Loc} center Center.
|
||||
* @return {ol.Map} This.
|
||||
@@ -83,3 +97,13 @@ ol.Map.prototype.setZoom = function(zoom) {
|
||||
this.zoom_ = zoom;
|
||||
return this;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} nZoom Zoom.
|
||||
* @return {ol.Map} This.
|
||||
*/
|
||||
ol.Map.prototype.setNumZoomLevels = function(nZoom) {
|
||||
this.numZoomLevels_ = nZoom;
|
||||
return this;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user