import * as React from 'react'; import Map from 'react-map-gl/mapbox'; // import {useMap} from 'react-map-gl/mapbox'; import 'mapbox-gl/dist/mapbox-gl.css'; import Controls2 from './controls2'; const MAPBOX_TOKEN = ''; // Set your mapbox token here export default function MapView() { /** * ## This is how `useMap` works: * ``` * const maps = useMap(); * console.log('MapView useMap()', maps); * ``` * ### First render: * ``` * { * "current": undefined * } * Second render: * { * "current": undefined, * "mymap": {...} // See https://visgl.github.io/react-map-gl/docs/api-reference/types#mapref * } * ``` */ return ( ); }