1.1 KiB
1.1 KiB
Arma tiles agent guide
- Keep
source/in version control through.gitkeep, but never commit.kmlor.kmzinputs. They are deployment data mounted throughARMA_TILES_SOURCE_DIR. - The generated result belongs in
tiles/; do not hand-edit it. Rundocker compose up --buildor./scripts/build-tiles.shto regenerate it. - Preserve the public Arma endpoint format:
/tiles/{x}/{y}/{z}. Internal files remaintiles/{z}/{x}/{y}.png. CALLBACK_PROVIDERis optional. When set, it must be an HTTPS template containing exactly{z},{x}, and{y}in its path. Validate it before a tile build; no provider-specific host or branding belongs in application code or documentation.- With a callback provider, MapLibre uses only
/tiles/{x}/{y}/{z}. The builder flattens Arma overlays over callback tiles, so transparent edges never expose black pixels. - Keep source processing idempotent, do not modify input files, and preserve per-source error reporting in
tiles/metadata.json. - Before handing off changes, run
python3 tests/test_build_tiles.py,docker compose config --quiet, anddocker compose build tileswhen Docker is available.