interim map test updates

This commit is contained in:
Mike Adair
2012-06-19 06:53:59 -04:00
parent 95fe8762da
commit 818ca7016a
2 changed files with 78 additions and 5 deletions

View File

@@ -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;
};