No-Library (pure JS), HTML, CSS, JavaScript
More solutions here: https://github.com/parallax/jsPDF/issues/2968#issuecomment-1467296601
In class the url addresses can be used - and document is still valid
https://stackoverflow.com/a/62578360/860099
A mapbox gl js playground for quick tryouts