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
154 stars 76 forks source link

Leaflet rotate - print #46

Closed sweco-sekrsv closed 5 years ago

sweco-sekrsv commented 5 years ago

I tried this branch (using a rotated leaflet map): https://github.com/fnicollet/Leaflet/tree/rotate-master

Your plugin works but the print does not end up rotated. I tried to see if I could make that change myself but cant figure out where to change it. Any ideas?

Igor-Vladyka commented 5 years ago

Can you provide full example in JSbin or similar? I need to debug it to see what is going on.

oarque commented 5 years ago

Hi, Here's is an JSbin example:

https://jsbin.com/pudupuq/1/edit?html,output

Igor-Vladyka commented 5 years ago

Tried to hack it but without success. Looks like there is an internal problem in rotate functionality that prevents it from proper map manipulation - therefor from proper printing with a plugin.

Anyway, have no plans for rewriting/fixing rotate plugin, maybe some fix will be introduced by initial rotate developer.