1.2 KiB
1.2 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, configure MapLibre with
/base/{x}/{y}/{z}as its raster layer below/tiles/{x}/{y}/{z}. This makes the provider visible through transparent edges of Arma overlays. - 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.