undefined

API Docs for: 5.4.1
Show:

ImageExport Class

Handles the generation of an image file from the map (and possibly other extra elements)

Imports RAMP Modules:

EventManager Map

Methods

hideFileLayers

() private

Find any visible file-based user-added layers. Set them to invisible. Store the change.

init

()

Initializes UI triggers.

restoreFileLayers

() private

Restore visibility to any layers that were temporarily turned off.

submitServiceImageRequest

() Promise private

Will initiate a request for an image of all service-based layers.

Returns:

Promise:

Returns a promise that is resolved when the image comes down or not.

ui.generateExportIamge

() private

Handles click event on the export image toggle.

ui.init

() private

Initializes ui and listeners.