print-maps icon indicating copy to clipboard operation
print-maps copied to clipboard

Implementing DIN sizes and a Bounding Box

Open TheCartographerDev opened this issue 5 years ago • 1 comments

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

TheCartographerDev avatar Mar 10 '20 09:03 TheCartographerDev

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.

mpetroff avatar Mar 20 '20 00:03 mpetroff