From 1ee0c50c8a4f10f02c8babfa8c01093d5b1853c3 Mon Sep 17 00:00:00 2001 From: William Wall Date: Thu, 27 Sep 2018 10:33:52 -0600 Subject: [PATCH] Fix type check in ol/source/Tile Remove 'extent' because the parent Source class does not contain 'extent' on its options or use options.extent in the constructor. Also removed 'extent' from 'Options' for 'TileSource'. --- src/ol/source/Tile.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ol/source/Tile.js b/src/ol/source/Tile.js index b38a52455c..6cc63dcbac 100644 --- a/src/ol/source/Tile.js +++ b/src/ol/source/Tile.js @@ -15,7 +15,6 @@ import {wrapX, getForProjection as getTileGridForProjection} from '../tilegrid.j * @typedef {Object} Options * @property {import("./Source.js").AttributionLike} [attributions] * @property {number} [cacheSize] - * @property {import("../extent.js").Extent} [extent] * @property {boolean} [opaque] * @property {number} [tilePixelRatio] * @property {import("../proj.js").ProjectionLike} [projection] @@ -41,7 +40,6 @@ class TileSource extends Source { super({ attributions: options.attributions, - extent: options.extent, projection: options.projection, state: options.state, wrapX: options.wrapX