diff --git a/src/ol.js b/src/ol.js index 29f3e4a655..93a9a92342 100644 --- a/src/ol.js +++ b/src/ol.js @@ -5,3 +5,4 @@ goog.require("ol.loc"); goog.require("ol.projection"); goog.require("ol.Tile"); +goog.require("ol.TileSet"); diff --git a/src/ol/TileSet.js b/src/ol/TileSet.js new file mode 100644 index 0000000000..dbe1f22ccf --- /dev/null +++ b/src/ol/TileSet.js @@ -0,0 +1,40 @@ +goog.provide('ol.TileSet'); + +/** + * The TileSet class. A TileSet instance represents a collection of + * tiles. Tiles of a TileSet have the same resolution, width and + * height. + * @constructor + */ +ol.TileSet = function() { + + /** + * @private + * @type {number|undefined} + */ + this.resolution_ = undefined; + + /** + * @private + * @type {number|undefined} + */ + this.bounds_ = undefined; + + /** + * @private + * @type {number|undefined} + */ + this.tileWidth_ = undefined; + + /** + * @private + * @type {number|undefined} + */ + this.tileHeight_ = undefined; + + /** + * @private + * @type {Array.|undefined} + */ + this.tiles_ = undefined; +}; diff --git a/test/index.html b/test/index.html index d331119af3..3f64ee9160 100644 --- a/test/index.html +++ b/test/index.html @@ -17,6 +17,7 @@ +