Add navigation control to map
In places tab, navigation controls are added to the mapbox map.
This commit is contained in:
parent
4cd822f068
commit
6c596c8462
|
@ -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