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 asecret(),
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 thegroups 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.