Screenshot button with script

Hi, I know that this has been posted before but can not find the thread…I want to incorporate a “screenshot” icon but within an extension using the “script” one…and the code was already written around here by the staff but can not find it, any help? thx

Here’s an example of adding an HTML button for capturing screenshot: shapespark-viewer-api/body-end.html at master · shapespark/shapespark-viewer-api · GitHub . If you want to use the Script extension, the code of the click handler from the example will be helpful.

1 Like