From 5f4e24e540e019a7b4a8a68d8810dc6416c1df01 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Fri, 22 Dec 2017 09:09:08 +0100 Subject: [PATCH] Remove DEFAULT_EXTENT from VectorTile class --- src/ol/VectorTile.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ol/VectorTile.js b/src/ol/VectorTile.js index ed01af2d64..90e048c389 100644 --- a/src/ol/VectorTile.js +++ b/src/ol/VectorTile.js @@ -77,6 +77,12 @@ var VectorTile = function(tileCoord, state, src, format, tileLoadFunction, opt_o inherits(VectorTile, _ol_Tile_); +/** + * @const + * @type {ol.Extent} + */ +var DEFAULT_EXTENT = [0, 0, 4096, 4096]; + /** * @inheritDoc @@ -96,7 +102,7 @@ VectorTile.prototype.disposeInternal = function() { * @api */ VectorTile.prototype.getExtent = function() { - return this.extent_ || VectorTile.DEFAULT_EXTENT; + return this.extent_ || DEFAULT_EXTENT; }; @@ -243,10 +249,4 @@ VectorTile.prototype.setLoader = function(loader) { this.loader_ = loader; }; - -/** - * @const - * @type {ol.Extent} - */ -VectorTile.DEFAULT_EXTENT = [0, 0, 4096, 4096]; export default VectorTile;