leaflet-easyPrint icon indicating copy to clipboard operation
leaflet-easyPrint copied to clipboard

Only current size works

Open tapiamcclung opened this issue 7 years ago • 2 comments

Hi! Great plugin. Thanks! In my implementation, however, I am able to only export using current size when using leaflet 0.7.7. Neither A4s or an additional option I set up works. Tried using Chrome 67, FF 61, different tiles, adding tileWait to the options and I get the same behavior: a blank page and a console error:

TypeError: e.options.tileLayer.isLoading is not a function and the offending function is _pausePrint

If I use leaflet 1.0.3 then I can export to different sizes but Current Size sometimes creates a large transparent image with the map being small...

Any clues? Thanks!

tapiamcclung avatar Jul 25 '18 20:07 tapiamcclung

+1

vmagalhaes avatar Aug 08 '18 13:08 vmagalhaes

The demo works perfectly on my machine. However, when I add it to my map I can only get the current size to download. Both A4 Portrait and Landscape give the same TypeError. I am using leaflet 1.0.3

UPDATE: I was able to get it working by removing the tileLayer option and leaving it set to null

cobbBR avatar Aug 09 '18 20:08 cobbBR