Fix map pdf generation with Firefox
Generating PDFs using Firefox was failling with the following error
TypeError: token is undefined html2canvas.js:2259
. I have created an
issue with full details in the html2canvas repository:
https://github.com/niklasvh/html2canvas/issues/2215.
This fix was simply something I felt worth trying after reading the
following from Letflet.MiniMap README
(https://github.com/Norkart/Leaflet-MiniMap): Node modules does not link css to minified version directly. Addrequire('../../node_modules/leaflet-minimap/dist/Control.MiniMap.min.css'); to the code.
.
Then I got PDF generation back working and removed a bunch of CSS code.
Part of #66 (closed)