Skip to content
LocusQ

MapLab

What it is

One server for Map Studio (a Maputnik fork), FontGen, IconGen and an Asset Library, publishing finished styles to a Tilex map service.

Studio previews with @locusq/gl-secure, edits 3D extrusion, label offsets and landmarks, and picks fonts and sprites from the Asset Library. A secure .lqtiles source can be previewed; its key stays in memory and never enters the style.

FontGen turns up to four TTF, OTF or TTC files into glyph ranges named after the font stack. IconGen packs SVG icons into a sprite with spreet, after a strict SVG policy check.

Publish uploads the glyphs and sprite first and the style last, so it goes live only when everything it points at exists. Credentials are stripped, and a token-shaped value anywhere is refused.

Install

The repositories and packages are private while LocusQ is in private release. Ask for access and say which tools you need.

Build the image

The build refuses to run without --build-arg GIT_REVISION, which becomes the image revision label.

bash
docker build --target run --build-arg GIT_REVISION=$(git rev-parse HEAD) --build-arg VERSION=0.5.0 -t locusq-maplab:local .

Start it with Compose

The admin token guards every write and publish route and must be at least 32 characters. Set MAPLAB_TILEX_URL and MAPLAB_TILEX_PUBLISH_KEY to publish to Tilex. The app is on 127.0.0.1:4000 by default.

bash
MAPLAB_ADMIN_TOKEN="$(openssl rand -hex 32)" docker compose up -d

Minimal usage

Open Studio at /studio/, edit a style and publish it. The answer is the live style URL on Tilex. A layer picks a MapLab font by its asset name:

json
"text-font": ["Noto Sans Regular"]

Product page: MapLab. Release notes: Changelog.