npm install
This will automatically run the development server and the Tailwind CSS watching:
npm run dev
Then navigate to http://localhost:3002/.
The model structure looks as follows:
dist/
├── config
│ ├── fish.yml
│ └── ...
├── data
│ ├── fish.geojson
│ └── ...
├── models
│ ├── fish.py
│ └── ...
To add a model, the following steps are needed:
- Create a new
GeoJSON
hexagon file, egdist/data/mining.geojson
. Use the instructions under prep to do this. - Write your
Python
model code and save it to egdist/models/mining.python
. - Create a new
YAML
config, egdist/config/mining.yml
. You can base this on the dist/config/example.yml file, and follow the instructions there for the necessary fields. Make sure it correctly points to the hexagon and model files you just created.
There are a few properties
that must be included on every Feature
in the hexagons GeoJSON
file:
- An integer
index
field as one of theproperties
, that must match theid
. - Integer fields
n0
throughn5
that refer to neighbouring hexagons. (This is only needed if any drawing will be used.)
The snippet below shows example properties for a single hexagon Feature:
"properties": {
"index": 0,
"n0": 450,
"n1": 307,
"n2": 270,
"n3": 2004,
"n4": 1695,
"n5": 1289
}