Skip to content

borja-munoz/print-carto-maps

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Print CARTO Maps

Web maps normally don't print well, as their resolution is much lower than normal print resolution. With Print CARTO Maps you can get high resolution maps for printing by leveraging Maplibre GL JS along with deck.gl to render maps created with CARTO Builder.

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

Usage

  1. Create your map with CARTO Builder
  2. Share the map publicly and copy the Map ID
  3. Enter the Map ID in the corresponding text box and click on the "Load" button
  4. Choose the desired options
  5. Click on the "Generate Map" button

Limitations

  • The application only works with maps shared publicly
  • The application does not support Google Maps basemap. If the map uses one of those, it will switch to a default CARTO basemap.

Building

Run a local webserver such as python3 -m http.server, and open index.html.

Deployment

$ cp index.html build
$ cp -r css build
$ cp -r js build
$ firebase deploy

Attribution

Attribution of maps is required. See tile provider terms for details.

License

Print CARTO Maps is forked from Print Maps by Matthew Petroff. Print Maps is distributed under the MIT License. For more information, read the file COPYING or peruse the license online.

Credits

About

High-resolution CARTO maps for printing from the browser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 63.3%
  • HTML 32.1%
  • CSS 4.6%