From 5f557e6c6ce29fc725a2f1423bf12500eeef5b8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Wed, 20 Jun 2012 08:48:12 +0200 Subject: [PATCH] the TileSet constructor takes 4 args --- src/ol/TileSet.js | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/src/ol/TileSet.js b/src/ol/TileSet.js index dbe1f22ccf..c4afd59a85 100644 --- a/src/ol/TileSet.js +++ b/src/ol/TileSet.js @@ -5,36 +5,38 @@ goog.provide('ol.TileSet'); * tiles. Tiles of a TileSet have the same resolution, width and * height. * @constructor + * @params {Array.>} tiles + * @params {number} tileWidth + * @params {number} tileHeight + * @params {number} resolution */ -ol.TileSet = function() { +ol.TileSet = function(tiles, tileWidth, tileHeight, resolution) { + + /** + * @private + * @type {Array.>} + */ + this.tiles_ = tiles; /** * @private * @type {number|undefined} */ - this.resolution_ = undefined; + this.tileWidth_ = tileWidth; /** * @private * @type {number|undefined} */ - this.bounds_ = undefined; + this.tileHeight_ = tileHeight; /** * @private * @type {number|undefined} */ - this.tileWidth_ = undefined; - - /** - * @private - * @type {number|undefined} - */ - this.tileHeight_ = undefined; - - /** - * @private - * @type {Array.|undefined} - */ - this.tiles_ = undefined; + this.resolution_ = resolution; +}; + +ol.TileSet.prototype.getTiles = function() { + return this.tiles_; };