Small Vue-based tool to show risk maps (modelled data from GeoTiff files, and occurrences from ), without any server-side component.
Install with:
npm install
Run in development with:
npm run serve
Build with:
npm run build
Then commit and push, including the docs
directory. GitHub pages does the rest and will serve the site at https://trias-project.github.io/risk-maps/.
source_data/overlays
public/overlays
. Example:$ ogr2ogr -f GeoJSON -t_srs crs:84 -simplify 30 public/overlays/ecoregions.geojson source_data/overlays/ecoregions/ecoregions.shp
Home.vue
source_data/geotiffs
$ python prepare_all_data.py
That's all, the script will save its output to src/species_config.json
.