Skip to main content
maps({...}) from @bijectionhq/library-geo/maps/library keeps what every map of a deployment reads: its basemaps, units, refresh interval and watermarks, the keyed tile providers it may draw, and an audit of every export. Place it in the app tree and show it in the console with panel("maps", siteMaps).

Settings

An administrator sets the default basemap, the units (metric, imperial, nautical), the time zone and time window a timeline opens on, how often a GeoJSON URL overlay is fetched again, and the number of objects above which a layer counts its objects per cell. They may add up to 16 custom basemaps (raster tiles, a style URL, or a PMTiles archive). A custom basemap is keyless: a URL that carries a query string, a fragment or user information is refused, so no key is ever stored in a fact.

Keyed providers

A provider that needs a key is declared in code. Its key is a secret(), set with bijection secret set, held by the target that opens the provider’s sessions: an http(...) target, or a pack receiver such as web(...). The console opens a session with sessions.open and reads it with sessions.get. The browser then reads tiles straight from the provider with the session’s short-lived URL, query and headers, and every request stays on the session’s origin. The key never reaches the browser, and no deployment proxy serves tiles. A session answer is { url, query?, headers?, expires?, attributions? }, or a Cesium ion asset endpoint ({ url, accessToken, attributions }). A basemap provider also names its raster tiles, relative to the session URL:

Watermarks and exports

Each watermark rule names one of the groups and a text. A reader sees the first rule whose group role they hold, or the deployment’s own watermark. The console shows it over every map and burns it into every image it exports. An export (an image of the map, or the GeoJSON of its GeoJSON overlays) is recorded with exports.record first and downloaded only once its receipt is kept. The receipt names the map, its title, format, bounds, layers, the watermark, who exported it and when.

Saved maps and overlays

The maps themselves are the reader’s saved console items. An overlay is uploaded or pasted GeoJSON, a GeoJSON URL, raster or vector tiles, a GL style fragment of tile sources and layers, a 3D Tiles tileset (by URL, or a keyed provider’s), or annotations drawn on the map (text, lines, areas and measures). A map names its overlays in drawing order, the area it opens on and its basemap. Every overlay URL obeys the same keyless rule, and a GL style may not hold a GeoJSON source.