Class: ImageLoader

OpenSeadragon.ImageLoader

Handles downloading of a set of images using asynchronous queue pattern. You generally won't have to interact with the ImageLoader directly.

Constructor

new ImageLoader(options)

Parameters:
Name Type Description
options Object Options for this ImageLoader.
Properties
Name Type Attributes Description
jobLimit Number <optional>
The number of concurrent image requests. See imageLoaderLimit in OpenSeadragon.Options for details.
Source:

Methods

addJob(src, crossOriginPolicy, callback)

Add an unloaded image to the loader queue.
Parameters:
Name Type Description
src String URL of image to download.
crossOriginPolicy String CORS policy to use for downloads
callback function Called once image has been downloaded.
Source:

clear()

Clear any unstarted image loading jobs from the queue.
Source: