Igor-Vladyka / leaflet.browser.print

A leaflet plugin which allows users to print the map directly from the browser
https://igor-vladyka.github.io/leaflet.browser.print/
MIT License
155 stars 76 forks source link

Zoom change on print #31

Closed robin-lundberg closed 6 years ago

robin-lundberg commented 6 years ago

Hi, can I disable the zoom change on print? I want it to print the exact same zoom level as is.

askart commented 6 years ago

hello, do you use "Auto"? Try to use "Album" or "Portrait".

robin-lundberg commented 6 years ago

Hi, I tried all options in different browsers and window sizes. All options zooms out one step.

Igor-Vladyka commented 6 years ago

Hello,

This feature is requested for a while now. I will add it to the scope of the next release.

Zoom changes due to a fact that each paper page has ~1.4 proportions width/ height. But in the browser map usually with different proportions, so plugin tries to catch everything that is currently visible on the map, and needs to zoom out to do it...

Regards, Igor

Igor-Vladyka commented 6 years ago

Hi Robin,

Now you can specify if you want to invalidate bounds(zoom level and map center) or not. Please check README for more details.

Please take latest release v0.6.3 and let me know if any.

Regards, Igor