will display a download icon in the bottom left of the element. Couldn't figure out how to add an icon to the builtin toolbar which would have been more preferrable but does the job for the project here.
To make it work the crossOriginPolicy property of the Viewer needed to be set. It defaults to 'anonymous' and was tested with Zuericher. An additional cors attribute allows to overwrite the default with 'use-credentials' if necessary.
…load of current viewport. Added a demo for the feature
Example:
will display a download icon in the bottom left of the element. Couldn't figure out how to add an icon to the builtin toolbar which would have been more preferrable but does the job for the project here.
To make it work the crossOriginPolicy property of the Viewer needed to be set. It defaults to 'anonymous' and was tested with Zuericher. An additional
cors
attribute allows to overwrite the default with 'use-credentials' if necessary.