-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The map is removed from screen during the export. #44
Comments
Can you show your configuration @LMF-personal ? |
This is the configuration I used for this plug-in.
At the same time, I found that when exporting the map, I could only export the top of the map when using the current size parameter, so I defined the print size. For the problem of map disappearing, I found that when the map was exported, a div container was created outside the map container, and the style of the div container was set as follows. |
What happens when you try and use one of the default sizes, such as A4 portait?
Are you getting any errors in your console? |
Same problem happens to me, I'm using the following code: leafletData.getMap('mapViewer').then(function(map){
L.easyPrint({
sizeModes: ['Current', 'A4Portrait', 'A4Landscape'],
exportOnly: true
}).addTo(map);
} If I export to 'Current' size the map shows in the screen during the export or print action, but when exporting to A4Portrait or A4Landscape the map dissapears. |
Mmm, my map is included using: <leaflet id="mapViewer" height="480px" width="auto"></leaflet> If I avoid using <leaflet id="mapViewer" height="400px" width="400px"></leaflet> |
Hi @santiquetzal & @LMF-personal I believe this should now be resolved in v2.1.8 . Let me know if you continue to have issues |
It's working well. |
I still have the problem of a disappearing map using Using 'Current' only the Leaflet controls disappear. Using the other sizes the whole map disappears. |
I still have also the problem of a disappearing map using exportOnly: true |
How to keep the map from disappearing?
The text was updated successfully, but these errors were encountered: