Skip to content

MAPP ​

Guide draft mapp ui architecture

The MAPP browser mapping library on OpenLayers, its entry module, its relation to the XYZ API and MAPP.UI, and its builds; use before changing MAPP.

Resource and sources

MAPP is the browser mapping library built around OpenLayers. XYZ supplies host APIs and workspace configuration. A locale describes the map's configuration; MAPP exposes mapview, layer, location, plugin and utility operations through globalThis.mapp.

The entry module is mapp.mjs. It checks the loaded OpenLayers version and warns when OpenLayers is absent or older than expected. Load the required OpenLayers distribution before using MAPP; the entry module does not install it automatically.

MAPP is the browser side of the XYZ API: it requests locales, layers and query templates from XYZ, which keeps SQL, connections and roles on the server. Sites outside XYZ use it as the @geolytix/mapp package.

MAPP.UI in apps/ui builds on MAPP; MAPP can be used without MAPP.UI. Both Vite builds write into public/js/lib without emptying the directory, preserving the other app's output. Use the app build scripts for JavaScript and CSS; see DEVELOPING.md.

API and tests ​

Use source JSDoc for individual methods and types; see DOCUMENTATION.md for the conventions. No API reference site is generated from it.

The tests are in apps/mapp/tests; follow TESTING.md.

XYZ v5.1.0. Generated from knowledge/ at dd7a6fa27736502733499c1bf485f15659b10338. Concepts marked draft are not reviewed.