Classes
Type Definitions
-
A function that takes an
module:ol/Image~Imagefor the image and a{string}for the src as arguments. It is supposed to make it so the underlying imagemodule:ol/Image~Image#getImageis assigned the content specified by the src. If not specified, the default isfunction(image, src) { image.getImage().src = src; }Providing a custom
imageLoadFunctioncan be useful to load images with post requests or - in general - through XHR requests, where the src of the image element would be set to a data URI when the content is loaded.