cartography

Generate a style from a text description

Converts text into a semantic manifest and compiled style. Returns matched vocabulary, applied changes, the bundle hash, and validation results.

When to use: Create an initial basemap style from a description, then review the proposed manifest.

When not to use: Use compileStyle for an existing manifest or explicit property changes.

post/styles/intent

Request

  • Base URL: https://api.mapsource.io
  • URL: https://api.mapsource.io/styles/intent
  • Auth: HTTP bearer

Request body

intentstring required

Text description of the desired basemap style.

base'light' | 'dark' | 'operations' | 'solarized-light' | 'solarized-dark' | 'mapsource'

Preset to build on. Defaults to one the intent implies.

saveboolean

Save the result as a profile revision on this key.

namestring

Profile name when saving.

slugstring

Profile slug when saving.

include'style'

style also returns the compiled MapLibre document.

Response

Generate a style from a text description

schemastring
intentstring
basestring
understoodboolean
vocabularystring[]
patchobject
manifestobject
hashstring
provenanceobject
profileobject

Changes

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