This is a basic example demonstrating data preparation for zarr-gl and loading in a simple no-build Maplibre website.
Steps (you're welcome to skip the bits you don't need or know how to do):
- Install uv:
curl -LsSf https://astral.sh/uv/install.sh | sh- Clone this repository and move to this directory:
git clone git@github.com:carderne/zarr-gl.git
cd zarr-gl/example- Install Python dependencies:
uv sync- Inspect the script at ./data_prep.py and run it.
It will generate a simple example dataset at
./example.zarr.
uv run python prep.py- Run a simple Python server in this directory:
uv run python -m http.server- And navigate to localhost:8000 in your browser. If all went well, you should see a simple red/green/blue gradient covering the world. Take a peek at index.html to see how it works.