From 6c596c8462d6e2675bbd633a5ea3e09bc30d93f3 Mon Sep 17 00:00:00 2001 From: Kjeldgaard Date: Wed, 30 Dec 2020 22:10:26 +0100 Subject: [PATCH] Add navigation control to map In places tab, navigation controls are added to the mapbox map. --- ui/src/Pages/PlacesPage/PlacesPage.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/src/Pages/PlacesPage/PlacesPage.js b/ui/src/Pages/PlacesPage/PlacesPage.js index 8f3d54e..ce23516 100644 --- a/ui/src/Pages/PlacesPage/PlacesPage.js +++ b/ui/src/Pages/PlacesPage/PlacesPage.js @@ -59,6 +59,9 @@ const MapPage = () => { zoom: 1, }) + // Add map navigation control + map.current.addControl(new mapboxLibrary.NavigationControl()) + map.current.on('load', () => { map.current.addSource('media', { type: 'geojson',