Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
20 lines (12 sloc) 0.694 kb
Saving a Leaflet Map to a PNG Example using Javascript and PHP
This is an example of taking a Leaflet map and saving it to a PNG.
To run the source example unzip the files into a directory on your webserver.
Make sure to CHMOD the savedMaps directory 777.
Load it up in a web browser and click the "Save to PNG button". Give it a few seconds.
Many thanks to:
html2canvas by Niklas von Hertzen
Jamund Ferguson
Jump to Line
Something went wrong with that request. Please try again.