From 8fb41837cccb2ccc87ba101c589fbb74b9f13cea Mon Sep 17 00:00:00 2001 From: vcoppe Date: Thu, 25 Jul 2024 18:38:03 +0200 Subject: [PATCH] add pitch to navigation map control --- website/src/lib/components/Map.svelte | 6 +++++- website/src/lib/docs/en/map-controls.mdx | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/website/src/lib/components/Map.svelte b/website/src/lib/components/Map.svelte index e88dc0e7..d810117a 100644 --- a/website/src/lib/components/Map.svelte +++ b/website/src/lib/components/Map.svelte @@ -71,7 +71,11 @@ }) ); - newMap.addControl(new mapboxgl.NavigationControl()); + newMap.addControl( + new mapboxgl.NavigationControl({ + visualizePitch: true + }) + ); if (geocoder) { newMap.addControl( diff --git a/website/src/lib/docs/en/map-controls.mdx b/website/src/lib/docs/en/map-controls.mdx index 8a90980f..a1eb6f56 100644 --- a/website/src/lib/docs/en/map-controls.mdx +++ b/website/src/lib/docs/en/map-controls.mdx @@ -12,7 +12,7 @@ title: Map controls ### Map navigation -The controls at the top allow you to zoom in and out , and to change the orientation of the map . +The controls at the top allow you to zoom in and out , and to change the orientation and tilt of the map .