Full vector style studio
Design the basemap against the live contract
Choose a preset, search the map, customize every supported semantic layer, preview the compiled vector style, then save a profile or download its manifest and MapLibre JSON.
A same-site preview key is loaded automatically when available. A key you enter stays in memory for this visit and is sent only to Mapsource.
Request / Response
Compile a semantic style
Start from the Mapsource preset and override supported layer colors and label visibility.
API call
curl --fail-with-body "https://api.mapsource.io/styles/compile" \
-H "Authorization: Bearer $MAPSOURCE_API_KEY" -H "Content-Type: application/json" \
--data '{"base":"mapsource","layers":{"water":{"fill":"#20495a"},"parks":{"fill":"#244c35"}},"labels":{"places":true}}'Example response
{"schema":"mapsource-compiled-style.v1","style":{"version":8,"name":"Mapsource custom","sources":{"openmaptiles":{"type":"vector","url":"https://api.mapsource.io/tiles/vector/{z}/{x}/{y}.pbf"}},"layers":[]},"warnings":[]}Style concepts, not tile internals
Adjust roads, water, land use, buildings, boundaries and labels through named semantic layers. The compiler maps those choices onto the current vector-tile schema.
Save intent and revisions
Generate a starting point from design intent, upload supported fonts, save profiles and compare revisions. Deliver a saved profile as MapLibre style JSON or render it into authenticated XYZ PNG tiles.
Service details
Built around a published contract
Inputs, outputs and limits remain inspectable in the generated API reference.
- Compile
- POST /api/styles/compile
- Inputs
- Preset, semantic layers and fonts
- Output
- MapLibre style JSON
- Lifecycle
- Profiles, revisions and diffs