Class: ImageWrapper

ol/Image~ImageWrapper


Extends

Methods

dispatchEvent(event){boolean|undefined} inherited

events/Target.js, line 96

Dispatches an event and calls all listeners listening for events of this type. The event parameter can either be a string or an Object with a type property.

Name Type Description
event Object | module:ol/events/Event~BaseEvent | string

Event object.

Returns:
false if anyone called preventDefault on the event object or if any of the listeners returned false.

getImage(){HTMLCanvasElement|HTMLImageElement|HTMLVideoElement}

Image.js, line 84
Returns:
Image.

load() inherited

Image.js, line 120

Load the image or retry if loading previously failed. Loading is taken care of by the tile queue, and calling this method is only needed for preloading or for reloading in case of an error.