Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mpetroff/print-maps
High-resolution maps in the browser, for printing
https://github.com/mpetroff/print-maps
Last synced: 4 days ago
JSON representation
High-resolution maps in the browser, for printing
- Host: GitHub
- URL: https://github.com/mpetroff/print-maps
- Owner: mpetroff
- License: mit
- Created: 2015-02-08T04:36:36.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-08-21T15:41:27.000Z (over 1 year ago)
- Last Synced: 2025-01-14T05:09:24.792Z (11 days ago)
- Language: JavaScript
- Homepage: https://printmaps.mpetroff.net/
- Size: 51.8 KB
- Stars: 286
- Watchers: 16
- Forks: 52
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: COPYING
Awesome Lists containing this project
README
# Print Maps
Web maps normally don't print well, as their resolution is much lower than
normal print resolution, not to mention the various other unwanted text and
elements that print along with the map. Print Maps changes that by leveraging
[Mapbox GL JS](https://github.com/mapbox/mapbox-gl-js) to render print
resolution maps in the browser.## Future updates
Due to Mapbox's new [anti-FOSS stance](https://github.com/mapbox/mapbox-gl-js/releases/tag/v2.0.0),
Mapbox GL JS will not be updated past v1.13. Please reach out to Mapbox to
express your displeasure with this stance. Maintenance on this repository will
continue as long as fixes can be made without updating Mapbox GL JS.## Options
* Inches or millimeters
* PNG or PDF output (PDF is Letter size for inches, A4 for millimeters)
* Choice of map styles
* Height and width settings
* DPI setting## Building
Add your Mapbox access token to `js/script.js`, run a local webserver such as
`python3 -m http.server`, and open `index.html`.## Attribution
Attribution of maps is required. See tile provider terms for details.
## License
Print Maps is distributed under the MIT License. For more information, read the
file `COPYING` or peruse the license
[online](https://github.com/mpetroff/print-maps/blob/master/COPYING).## Credits
* [Matthew Petroff](http://mpetroff.net/), Original Author
* [Mapbox GL JS](https://github.com/mapbox/mapbox-gl-js)
* [FileSaver.js](https://github.com/eligrey/FileSaver.js/)
* [canvas-toBlob.js](https://github.com/eligrey/canvas-toBlob.js)
* [jsPDF](https://github.com/MrRio/jsPDF)
* [Bootstrap](http://getbootstrap.com/)