Create tmpSize_ before calling calculateTileRanges_
This commit is contained in:
@@ -116,6 +116,12 @@ ol.tilegrid.TileGrid = function(options) {
|
||||
*/
|
||||
this.fullTileRanges_ = null;
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {ol.Size}
|
||||
*/
|
||||
this.tmpSize_ = [0, 0];
|
||||
|
||||
if (options.sizes !== undefined) {
|
||||
goog.asserts.assert(options.sizes.length == this.resolutions_.length,
|
||||
'number of sizes and resolutions must be equal');
|
||||
@@ -136,12 +142,6 @@ ol.tilegrid.TileGrid = function(options) {
|
||||
this.calculateTileRanges_(extent);
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {ol.Size}
|
||||
*/
|
||||
this.tmpSize_ = [0, 0];
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user