File shuffle.

This commit is contained in:
Tim Schaub
2012-06-19 09:45:08 +02:00
parent f24b518f61
commit bd6b52c2cd
3 changed files with 0 additions and 0 deletions

85
src/ol/Map.js Normal file
View File

@@ -0,0 +1,85 @@
goog.provide('ol.Map');
goog.require('ol.Location');
goog.require('ol.Projection');
/**
* @constructor
*/
ol.Map = function() {
/**
* @private
* @type {ol.Projection}
*/
this.projection_ = new ol.Projection();
/**
* @private
* @type {ol.Location}
*/
this.location_ = new ol.Location(0, 0);
/**
* @private
* @type {number}
*/
this.zoom_ = 0;
};
/**
* @return {ol.Location} Location.
*/
ol.Map.prototype.getCenter = function() {
return this.center_;
};
/**
* @return {ol.Projection} Projection.
*/
ol.Map.prototype.getProjection = function() {
return this.projection_;
};
/**
* @return {number} Zoom.
*/
ol.Map.prototype.getZoom = function() {
return this.zoom_;
};
/**
* @param {ol.Location} center Center.
* @return {ol.Map} This.
*/
ol.Map.prototype.setCenter = function(center) {
this.center_ = center;
return this;
};
/**
* @param {ol.Projection} projection Projection.
* @return {ol.Map} This.
*/
ol.Map.prototype.setProjection = function(projection) {
this.projection_ = projection;
return this;
};
/**
* @param {number} zoom Zoom.
* @return {ol.Map} This.
*/
ol.Map.prototype.setZoom = function(zoom) {
this.zoom_ = zoom;
return this;
};