Skip to content
LocusQ

Quickstart

LocusQ is a self-hosted mapping platform: a data pipeline, vector tiles, map styles, a WebGL renderer, routing and geocoding. Each part is its own tool, and you run it on your own servers.

Get access

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

Draw a map in the browser

@locusq/gl is a drop-in replacement for MapLibre GL JS. Point the @locusq scope at GitHub Packages in your .npmrc, install it and draw a map:

bash
npm install @locusq/gl
ts
import maplibregl from '@locusq/gl';

const map = new maplibregl.Map({
  container: 'map',
  style: 'https://demotiles.maplibre.org/style.json',
  center: [-74.5, 40],
  zoom: 9
});

Build tiles for your own area

TileGen builds an OpenMapTiles basemap as PMTiles from any OSM PBF. With a Geofabrik area name it fetches the PBF for you:

bash
bin/locusq-tilegen basemap --area <geofabrik-name>

Serve the result with Tilex and style it in MapLab.

Get a console token

Sign up and the console shows a public token (pk.) right away, with a snippet that uses it. Hosted LocusQ APIs are not online yet; the token will work with them when they are. See Tokens.

Next

  • Tokens: token types, scopes, URL restrictions and how services check a token.
  • Self-hosting: the whole pipeline, with ports and keys.
  • Products: a guide per tool.