Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

zarr-gl-example

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):

  1. Install uv:
curl -LsSf https://astral.sh/uv/install.sh | sh
  1. Clone this repository and move to this directory:
git clone git@github.com:carderne/zarr-gl.git
cd zarr-gl/example
  1. Install Python dependencies:
uv sync
  1. 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
  1. Run a simple Python server in this directory:
uv run python -m http.server
  1. 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.