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 Oct 17 '18 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 Oct 17 '18 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 Oct 17 '18 at 9:38
  • 1
    @Revo that is perfect, exactly waht I needed :D – Nylak Oct 17 '18 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 Oct 26 '18 at 10:24

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


We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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