Class: ImageSource

ol/source/Image~ImageSource


import ImageSource from 'ol/source/Image';

Abstract base class; normally only used for creating subclasses and not instantiated in apps. Base class for sources providing a single image.

new ImageSource(options)

source/Image.js, line 87
Name Type Description
options

Single image source options.

Name Type Description
attributions module:ol/source/Source~AttributionLike
projection module:ol/proj~ProjectionLike
resolutions Array.<number>
state module:ol/source/State
Fires:

Subclasses

Extends

Methods

getProjection(){module:ol/proj/Projection~Projection} inherited

source/Source.js, line 119

Get the projection of the source.

Returns:
Projection.

getState(){module:ol/source/State} inherited

source/Source.js, line 136

Get the state of the source, see module:ol/source/State~State for possible states.

Returns:
State.

refresh() inherited

source/Source.js, line 151

Refreshes the source and finally dispatches a 'change' event.

setAttributions(attributions) inherited

source/Source.js, line 162

Set the attributions of the source.

Name Type Description
attributions module:ol/source/Source~AttributionLike | undefined

Attributions. Can be passed as string, Array<string>, module:ol/source/Source&tilde;Attribution, or undefined.