Styles in Examples
The examples below refer to a style constant. Substitute one of your own styles — the identifiers here are placeholders, not styles hosted for you.
A style URL has the form https://gateway.mapmetrics-atlas.net/styles/?fileName=<STYLE_ID>/<STYLE>.json&token=<API_KEY>. The fileName parameter is required; a bare /styles/<id>?token= returns HTTP 400.
swift
let MAP_STYLE = URL(string:
"https://gateway.mapmetrics-atlas.net/styles/?fileName=YOUR_STYLE_ID/YOUR_STYLE.json&token=YOUR_API_KEY")