geojson-weaver

geojson-weaver

🏭 Weave your data into country or state GeoJSON polygons with Jekyll

GeoJSON weaver

Use Jekyll to combine your data with GeoJSON polygons of countries or US states.

These files contain each country or US state and its polygon coordinates (you shouldn't need to change these files):

Create a new .yml file in the _data folder with your data. Each entry must start with and match the state/country name found in the countries/states.yml file.

Examples:

Create a .js file to loop, combine the data, and build the GeoJSON, see country-data.js or state-data.js for examples on how to build the loop. The output is GeoJSON of just your dataset. Here you'll want to customize the GeoJSON fields to your data.

See index.html for an example to load the GeoJSON on a map.