[GIS] Download data from webmap made with leaflet

leafletqgis

Can I download the data from a webmap made available from leaflet? I am referring to these dataset (https://www.vectorbase.org/popbio/map/), for which I wish to download the data for Europe? Is there a way to import these data into QGIS providing the link of the website?

Best Answer

In general, yes, in theory, yes, in practice, yes with a bit of work. There's no general general solution because you can't know how the data is coming from the server. The solution involves looking at the underlying Javascript and seeing what it does. Chances are it will be an AJAX call to a server that returns a geoJSON data set, but it could literally be anything. If AJAX and geoJSON mean nothing to you then I doubt you'll be able to write something to do it for any given site.

That said, the site you reference has a big fat "Downloads" button which is clearly the recommended way to get the data you want rather than trying to reverse engineer their web map system. Use that.

Related Question