Skip to content
LocusQ

Map Studio, fonts and icons in one server

MapLab serves Map Studio, a Maputnik fork, with FontGen, IconGen and an Asset Library from one Fastify server, and publishes finished styles to a Tilex map service. One Docker image runs it all.

Maps

0.5.0Free + Pro

01What it does

Edit styles in Map Studio

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.

Glyphs from your fonts, sprites from your SVGs

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.

text
<origin>/assets/glyphs/{fontstack}/{range}.pbf
"text-font": ["Noto Sans Regular"]

Publish to Tilex in one request

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.

text
POST /api/publish   {mapId, name, style}
->   <MAPLAB_TILEX_PUBLIC_URL>/maps/<mapId>/style.json

02Install

Run MapLab yourself

  1. Get access

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

  2. 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 .
  3. 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

Style your first map

The guide covers Studio, FontGen, IconGen and publishing.