Skip to main content

API reference

Every export of the MapCairn SDK packages, one page each, generated from the packages' TSDoc comments.

The pages are generated at build time from the same API Extractor model that checks the public API, so they describe what is published.

Packages​

  • @mapcairn/core: Map interfaces, pure logic, basemaps and test fakes for MapCairn; no React, no browser globals
  • @mapcairn/react: Generic React hooks for MapCairn applications
  • @mapcairn/theme: MapCairn's typed design tokens, light and dark themes, and contrast checks; plain CSS, no plugin needed
  • @mapcairn/map: The accessible React map interface of MapCairn: map controls, panels, search, measure and draw tools
  • @mapcairn/adapter-maplibre: The MapLibre GL JS map adapter for MapCairn, and the styles that fit the engine into the map region
  • @mapcairn/sdk: One install and one import for the MapCairn SDK: core, map, react and theme, with the MapLibre adapter at a subpath