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'.
This commit is contained in:
William Wall
2018-09-27 10:33:52 -06:00
parent 2752541ff1
commit 1ee0c50c8a

View File

@@ -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