the TileSet constructor takes 4 args

This commit is contained in:
Éric Lemoine
2012-06-20 08:48:12 +02:00
parent 8d74113897
commit 5f557e6c6c
+18 -16
View File
@@ -5,36 +5,38 @@ goog.provide('ol.TileSet');
* tiles. Tiles of a TileSet have the same resolution, width and * tiles. Tiles of a TileSet have the same resolution, width and
* height. * height.
* @constructor * @constructor
* @params {Array.<Array.<ol.Tile>>} tiles
* @params {number} tileWidth
* @params {number} tileHeight
* @params {number} resolution
*/ */
ol.TileSet = function() { ol.TileSet = function(tiles, tileWidth, tileHeight, resolution) {
/**
* @private
* @type {Array.<Array.<ol.Tile>>}
*/
this.tiles_ = tiles;
/** /**
* @private * @private
* @type {number|undefined} * @type {number|undefined}
*/ */
this.resolution_ = undefined; this.tileWidth_ = tileWidth;
/** /**
* @private * @private
* @type {number|undefined} * @type {number|undefined}
*/ */
this.bounds_ = undefined; this.tileHeight_ = tileHeight;
/** /**
* @private * @private
* @type {number|undefined} * @type {number|undefined}
*/ */
this.tileWidth_ = undefined; this.resolution_ = resolution;
};
/**
* @private ol.TileSet.prototype.getTiles = function() {
* @type {number|undefined} return this.tiles_;
*/
this.tileHeight_ = undefined;
/**
* @private
* @type {Array.<ol.Tile>|undefined}
*/
this.tiles_ = undefined;
}; };