get_tile_style_url
Retrieve a MapLibre GL style URL for rendering Mapsi map tiles. Supports multiple visual styles like light, dark, streets, and topo for use in MapLibre GL JS or Mapbox-compatible libraries.
Instructions
Get the MapLibre GL style URL for Mapsi map tiles.
Returns: { style_url, usage_note, maplibre_example }.
AUTH NOTE: Tile auth uses ?key= query param in the URL, NOT the X-API-Key header. This is intentional — tile URLs must be usable in browser tags and MapLibre without exposing headers.
STYLES:
light: Minimal, pale, ideal for data overlays (default)
dark: Dark mode, high contrast for dashboards
streets: Full street detail, labels, transit
topo: Terrain/elevation shading, ideal for outdoor apps
grayscale: Monochrome, for color-coded data layers
white/black: Blank canvas for custom styling
liberty: Colorful OSM-inspired style
USE FOR: Initializing MapLibre GL JS, React Map GL, Mapbox-compatible libraries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | Map visual style. Default: light. | |
| api_key | Yes | Mapsi API key. Will be embedded in the returned URL as a ?key= param. |