umap
umap copied to clipboard
Allow the user to print the current viewed map
Refs #88
Refs https://github.com/1904labs/dom-to-image-more/issues/50 too.
Exciting!
Two first comments:
- I'd put the print button on the left/white bar, which the one for reading the map, while the right/black one is dedicated to editing it
- I'd hide all the map controls
Ah, bug, while using a map with a lot of objects, not sure if it's related:

Same with "a lot" of points:

I'd put the print button on the left/white bar, which the one for reading the map, while the right/black one is dedicated to editing it
I tried at first but it was a bit too complicated for a first time, let's adapt that together.
I'd hide all the map controls
There is a mechanism to filter out elements but I didn't try it yet!
Ah, bug, while using a map with a lot of objects, not sure if it's related:
The two errors are different, we might hit some limitations at some point, the dom-to-image tool is actually re-rendering the whole page to be able to convert it.
Also https://github.com/1904labs/dom-to-image-more has probably more bugs fixed but we have to retrieve the fix for iframes (see comments at the top of the copied file).
See also https://leafletjs.com/plugins.html#printexport
We tried https://html2canvas.hertzen.com/ but:
If you wish to load images that reside outside of your pages origin, you can use a proxy to load the images. — https://html2canvas.hertzen.com/faq
So we do not have background tiles in the preview of the map.