Make Mol the primary operating context
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { useEffect, useRef, useState } from 'react'
|
||||
import maplibregl from 'maplibre-gl'
|
||||
import 'maplibre-gl/dist/maplibre-gl.css'
|
||||
import { PRIMARY_FOCUS_CENTER } from '../config/primaryFocus'
|
||||
|
||||
interface GeoMapProps {
|
||||
data: GeoJSON.FeatureCollection | null
|
||||
@@ -162,8 +163,8 @@ function GeoMap({
|
||||
const map = new maplibregl.Map({
|
||||
container: containerRef.current,
|
||||
style: defaultMapStyle(),
|
||||
center: [5.3, 51.3],
|
||||
zoom: 9,
|
||||
center: PRIMARY_FOCUS_CENTER,
|
||||
zoom: 11,
|
||||
attributionControl: false,
|
||||
})
|
||||
map.addControl(new maplibregl.NavigationControl(), 'top-right')
|
||||
|
||||
Reference in New Issue
Block a user