1
Fork 0

Merge pull request #162 from Kjeldgaard/master

Add navigation control to map
This commit is contained in:
Viktor Strate Kløvedal 2020-12-30 23:10:01 +01:00 committed by GitHub
commit 82f4982e0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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',