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

Map container dissapears while printing #128

Open bsoviedo opened 2 years ago

bsoviedo commented 2 years ago

I had my map like this in my css:

´´´

mapid {

z-index: 0; margin-top: 12vh; height: 88vh; } ´´´

using vh like the measurement for the heigth.

The configuration of the plugin is:

´´´ // snapshot de mapa L.easyPrint({ position: 'bottomright', sizeModes: [ 'A4Portrait', 'A4Landscape'],

exportOnly:false,

}).addTo(mymap);

´´´

but when i take the snapshoot, the map dissapears while the file is loaded.

i have read the #44 but not working for me

Any thoughts?