the TileSet constructor takes 4 args
This commit is contained in:
+18
-16
@@ -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;
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user