Skip to content

pkd2512/print-maps

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Print Maps

http://prasantakrdutta.com/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 to render print resolution maps in the browser.

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.

Credits

About

High-resolution maps in the browser, for printing

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 53.3%
  • JavaScript 42.0%
  • CSS 4.7%