mpetroff / print-maps

High-resolution maps in the browser, for printing
https://printmaps.mpetroff.net/
MIT License
286 stars 51 forks source link

Implementing DIN sizes and a Bounding Box #23

Open TheCartographerDev opened 4 years ago

TheCartographerDev commented 4 years ago

Hi,

first off all thank you guys for the amazing work with print maps.

I would like to use presets for different print sizes (DIN A4, A3, A2, A1 and like in the offical version an option with mm, I don't need the inch). How do I manage this?

Also I changed the canvas size of the mapbox map to 93vw (93% of the viewport width) because I would like to always show the full size map but if a user is going to pick a print size I would like to load a boundingbox which is showing the actual area which is going to get printed. Is this possible?

Cheers

mpetroff commented 4 years ago

If you want to add preset sizes, you'll need to edit both the HTML and the JavaScript.

Your bounding box question is a Mapbox GL JS question, so this isn't the place to ask it.

This repository is for a website, not a library. You're on your own for any modifications.