rowanwins / leaflet-easyPrint

A leaflet plugin which adds an icon to print the map - Demo @ http://rowanwins.github.io/leaflet-easyPrint/
MIT License
248 stars 137 forks source link

Add ability to change dpi #73

Closed ciaransweet closed 3 years ago

ciaransweet commented 6 years ago

Hi there,

It would be really handy to be able to change the dpi in which the plugin saves images.

Not sure where this would go, possibly in where you set your custom sizes, eg: var a3Size = { height: 3508, width: 4961, dpi: 300, className: 'a3CssClass', name: 'A3 Portrait' };

Currently it seems they're locked to 90? That's quite low if you're taking images of built-up areas.

Many thanks!

rowanwins commented 6 years ago

Hi @CiaranEvans

Yeah I dabbled with this a little bit when I rewrote the library but I never found a good way to tackle it in the end. Printing and sizing and dpi's etc I found a bit weird. I'm open to ideas and pull requests :)

super-lou commented 2 years ago

Hi, thank you for all this work! This repo doesn't really seem to be actively maintained anymore, but just to let you know that you could still make someone really happy (and my old boss who likes to print stuff) if the 300 dpi was an option. (Not shure if a solution have been found yet ...)