1. My map is in a HTML page
  2. Lots of markers will be placed on the map
  3. I need to save this map with all the marker in a img (.png or .jpg/.jpeg preferably) format, not the entire HTML page

Is there a plug-in from leaflet which allows us to do such a thing ?

  • 2
    this looks promising: rowanwins.github.io/leaflet-easyPrint
    – Revo
    Commented Oct 17, 2018 at 9:27
  • 2
    Simply you can take a screenshot of the map and save it as PNG, if this can solve your problem.
    – ahmadhanb
    Commented Oct 17, 2018 at 9:29
  • 1
    @ahmadhanb This can be a solution, but if something exits avoid screenshot, it can be better :) and Revo, exactly what I was looking for :D
    – Nylak
    Commented Oct 17, 2018 at 9:38
  • 1
    @Revo that is perfect, exactly waht I needed :D
    – Nylak
    Commented Oct 17, 2018 at 9:51
  • @PolyGeo, it looks similar to me as Saving Leaflet.js maps as a static image, do not you think so? Leaflet provides documentation on this topic Print/export.
    – Taras
    Commented Oct 26, 2018 at 10:24

1 Answer 1


You can refer to this Official LeafletJS Documentation's Plugins Page:


  • 1
    Someone already hinted me toward this ;) They told me to use leaflet easy-print plug-in to save my map as an image.
    – Nylak
    Commented Oct 17, 2018 at 11:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.