import * as React from 'react'; import {useState} from 'react'; import MapGL, {Marker} from 'react-map-gl'; import bartStations from '../../.data/bart-station.json'; const MAPBOX_TOKEN = ''; // Set your mapbox token here export default function BartMap(props) { const [viewport, setViewport] = useState({ latitude: 37.73, longitude: -122.36, zoom: 11, bearing: 0, pitch: 50 }); // eslint-disable-next-line const onMapLoad = event => console.log(event); return ( {bartStations.map(({name, coordinates}, i) => (
{name}
))}
); }