1
Fork 0

Add navigation control to map

In places tab, navigation controls are added to the mapbox map.
This commit is contained in:
Kjeldgaard 2020-12-30 22:10:26 +01:00
parent 4cd822f068
commit 6c596c8462
1 changed files with 3 additions and 0 deletions

View File

@ -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',