From 81a0c341abfc93e7f4634d56e7fa1b03ac62b2e8 Mon Sep 17 00:00:00 2001 From: Roman Zoller Date: Sun, 25 Mar 2018 12:00:26 +0200 Subject: [PATCH] Move ol.SourceImageOptions to ol/source/Image --- src/ol/source/Image.js | 12 +++++++++++- src/ol/typedefs.js | 10 ---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/ol/source/Image.js b/src/ol/source/Image.js index 2e8a0ec6ea..4be55dc8eb 100644 --- a/src/ol/source/Image.js +++ b/src/ol/source/Image.js @@ -67,6 +67,16 @@ const ImageSourceEvent = function(type, image) { inherits(ImageSourceEvent, Event); +/** + * @typedef {Object} Options + * @property {ol.AttributionLike} [attributions] + * @property {module:ol/extent~Extent} [extent] + * @property {module:ol/proj~ProjectionLike} projection + * @property {Array.} [resolutions] + * @property {ol.source.State} [state] + */ + + /** * @classdesc * Abstract base class; normally only used for creating subclasses and not @@ -76,7 +86,7 @@ inherits(ImageSourceEvent, Event); * @constructor * @abstract * @extends {ol.source.Source} - * @param {ol.SourceImageOptions} options Single image source options. + * @param {module:ol/source/Image~Options} options Single image source options. * @api */ const ImageSource = function(options) { diff --git a/src/ol/typedefs.js b/src/ol/typedefs.js index 5be4ae87ae..f4c40033cd 100644 --- a/src/ol/typedefs.js +++ b/src/ol/typedefs.js @@ -209,16 +209,6 @@ ol.ReprojTileFunctionType; ol.ReprojTriangle; -/** - * @typedef {{attributions: (ol.AttributionLike|undefined), - * extent: (null|module:ol/extent~Extent|undefined), - * projection: module:ol/proj~ProjectionLike, - * resolutions: (Array.|undefined), - * state: (ol.source.State|undefined)}} - */ -ol.SourceImageOptions; - - /** * @typedef {{revision: number, * resolution: number,