Set pitch and bearing
Replicates the MapLibre example Set pitch and bearing: an oblique initial camera over Montréal.
The complete document
Section titled “The complete document”# yaml-language-server: $schema=https://docs.maplibre-yaml.org/schema/latest/map.schema.json# Gallery twin of https://maplibre.org/maplibre-gl-js/docs/examples/set-pitch-and-bearing/type: mapid: set-pitch-and-bearingconfig: center: [-73.5804, 45.53483] zoom: 9 pitch: 60 bearing: -60 mapStyle: "https://demotiles.maplibre.org/style.json"What to notice
Section titled “What to notice”config.pitch(0–85) andconfig.bearing(−180–180) joincenter/zoomas the four initial-camera fields.