From d4f39f7bbb87ebdec6d811bccb07eb09f5936bad Mon Sep 17 00:00:00 2001 From: Roman Zoller Date: Sun, 25 Mar 2018 11:44:57 +0200 Subject: [PATCH] Move ol.SourceSourceOptions to ol/source/Source --- src/ol/source/Source.js | 11 ++++++++++- src/ol/typedefs.js | 9 --------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/ol/source/Source.js b/src/ol/source/Source.js index 90777c5e72..e2149b10f8 100644 --- a/src/ol/source/Source.js +++ b/src/ol/source/Source.js @@ -8,6 +8,15 @@ import {get as getProjection} from '../proj.js'; import SourceState from '../source/State.js'; +/** + * @typedef {Object} Options + * @property {ol.AttributionLike} [attributions] + * @property {module:ol/proj~ProjectionLike} projection + * @property {ol.source.State} [state] + * @property {boolean} [wrapX] + */ + + /** * @classdesc * Abstract base class; normally only used for creating subclasses and not @@ -19,7 +28,7 @@ import SourceState from '../source/State.js'; * @constructor * @abstract * @extends {module:ol/Object~BaseObject} - * @param {ol.SourceSourceOptions} options Source options. + * @param {module:ol/source/Source~Options} options Source options. * @api */ const Source = function(options) { diff --git a/src/ol/typedefs.js b/src/ol/typedefs.js index eb7aa323c0..5be4ae87ae 100644 --- a/src/ol/typedefs.js +++ b/src/ol/typedefs.js @@ -227,15 +227,6 @@ ol.SourceImageOptions; ol.SourceRasterRenderedState; -/** - * @typedef {{attributions: (ol.AttributionLike|undefined), - * projection: module:ol/proj~ProjectionLike, - * state: (ol.source.State|undefined), - * wrapX: (boolean|undefined)}} - */ -ol.SourceSourceOptions; - - /** * @typedef {{attributions: (ol.AttributionLike|undefined), * cacheSize: (number|undefined),