Transform Shapefiles from GADM into geosjon file that you can use via Leaflet or other libraries
npm install -g mapshaper
- Download countries'
Shapefile
from http://www.gadm.org/country - Extract all files from the
zip
inside a folder
node index.js <directory-path-1> <directory-path-2> ... <directory-path-N>
The program will create inside the directory a folder geojson
and put the transformed files inside.
You can use the geojson
file inside your application.