Merge pull request #162 from Kjeldgaard/master
Add navigation control to map
This commit is contained in:
commit
82f4982e0e
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue