Change map to map-container
This commit is contained in:
parent
7e53f3a97e
commit
bdfd25d314
@ -10,7 +10,7 @@ mapboxgl.accessToken = 'pk.eyJ1IjoiYWxpLWFkbGkiLCJhIjoiY2xuM2JtYjV1MGE5djJrb2d5O
|
||||
export function CityMap() {
|
||||
useEffect(() => {
|
||||
const map = new mapboxgl.Map({
|
||||
container: 'map', // container ID
|
||||
container: 'map-container', // container ID
|
||||
style: 'mapbox://styles/mapbox/streets-v12', // style URL
|
||||
center: [-73.5801403, 45.4962261], // starting position [lng, lat]
|
||||
zoom: 15, // starting zoom
|
||||
|
Loading…
Reference in New Issue
Block a user