Create tmpSize_ before calling calculateTileRanges_

This commit is contained in:
Frederic Junod
2016-04-13 12:19:00 +02:00
parent 01a6612ab3
commit ccfc3f7798

View File

@@ -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];
};