[GIS] Leaflet export to jpg

.jpgexportleaflet

Does anybody know if there is a way to export the current view of a Leaflet map to jpg? The setup is as follows:

Leaflet is hooked up to an Oracle database. Depending on user interaction, various Geojson layers are displayed. I'd like to include a way for the user to export the current view to a static file (jpg or png). The static file should include the basemap.

Any ideas?

Best Answer

There is now a plugin for Leaflet that handles this.

Leaflet.print