diff --git a/src/ol/source/Raster.js b/src/ol/source/Raster.js index 73f804154e..580d873150 100644 --- a/src/ol/source/Raster.js +++ b/src/ol/source/Raster.js @@ -16,7 +16,6 @@ import {assign} from '../obj.js'; import CanvasImageLayerRenderer from '../renderer/canvas/ImageLayer.js'; import CanvasTileLayerRenderer from '../renderer/canvas/TileLayer.js'; import ImageSource from '../source/Image.js'; -import RasterOperationType from '../source/RasterOperationType.js'; import SourceState from '../source/State.js'; import TileSource from '../source/Tile.js'; import {create as createTransform} from '../transform.js'; @@ -61,6 +60,16 @@ const RasterEventType = { }; +/** + * Raster operation type. Supported values are `'pixel'` and `'image'`. + * @enum {string} + */ +const RasterOperationType = { + PIXEL: 'pixel', + IMAGE: 'image' +}; + + /** * @classdesc * Events emitted by {@link ol.source.Raster} instances are instances of this @@ -113,7 +122,7 @@ inherits(RasterSourceEvent, Event); * be run in multiple worker threads. Note that there is additional overhead in * transferring data to multiple workers, and that depending on the user's * system, it may not be possible to parallelize the work. - * @property {ol.source.RasterOperationType} [operationType] Operation type. + * @property {module:ol/source/Raster~RasterOperationType} [operationType='pixel'] Operation type. * Supported values are `'pixel'` and `'image'`. By default, * `'pixel'` operations are assumed, and operations will be called with an * array of pixels from input sources. If set to `'image'`, operations will diff --git a/src/ol/source/RasterOperationType.js b/src/ol/source/RasterOperationType.js deleted file mode 100644 index 4d4672d929..0000000000 --- a/src/ol/source/RasterOperationType.js +++ /dev/null @@ -1,12 +0,0 @@ -/** - * @module ol/source/RasterOperationType - */ - -/** - * Raster operation type. Supported values are `'pixel'` and `'image'`. - * @enum {string} - */ -export default { - PIXEL: 'pixel', - IMAGE: 'image' -};