A library for saving high resolution versions of mapbox-gl maps to a pdf with an optional header and/or footer that scales with the size of the format.
npm install mapbox-print-canvas
The available properties/values are restricted by html2canvas, for a list of supported features see html2canvas.
Attribution of maps is required. See tile provider terms for details.
Licensed under the MIT License.
- Matthew Petroff, Based on his work print-maps
- Mapbox GL JS
- jsPDF
- html2canvas