cartography

Read a compiled MapLibre style

The compiled style document for a preset or one of your saved profiles. metadata['mapsource:ui'] contains the resolved colors and font stacks for browser attribution and result labels; install the public Map UI helper to apply them to HTML controls.

When to use: Load a preset or saved profile into a MapLibre-compatible client.

get/styles/{id}/style.json

Request

  • Base URL: https://api.mapsource.io
  • URL: https://api.mapsource.io/styles/{id}/style.json
  • Auth: none declared

Path parameters

idstring required

Preset id or profile slug.

Response

Read a compiled MapLibre style

versioninteger
sourcesobject
metadataobject

Basemap contract, preset reference, and mapsource:ui theme metadata (version 1).

Changes

No recorded changes to this operation across all 1 revision of this API.