Saving Leaflet.js cards as a static image

I am trying to find a good method that allows end users to save Leaflet.js cards as a static image (e.g. PNG, JPG, etc.). Mapbox.js (built on top of Leaflet.js) provides a good method , but I assume that this requires that your maps are hosted on Mapbox so that they have a map identifier through their API. Does anyone know how I can do this using the Leaflet.js map, which cannot be called via the API? For example, my example is here ?

Thanks everyone! Eli

+5
source share
1 answer

This thread is a bit outdated during this answer, but there are several elevator plugins that seem to be being solved now.

Elevator Printing Plugins

+2
source

Source: https://habr.com/ru/post/1200501/


All Articles