I am using React-Map-GL but it's not appearing and I'm not sure why.
Here is the component I am trying to render:
import ReactMapGL, {Marker} from 'react-map-gl';
import React, {Component} from 'react';
import {apikey} from '../api/api';
class LocateUsers extends Component {
render() {
return(
<ReactMapGL mapboxApiAccessToken={apikey}
latitude={37.78} longitude={-122.41} zoom={8}>
<Marker latitude={37.78} longitude={-122.41} offsetLeft={-20} offsetTop={-10}>
<div>You are here</div>
</Marker>
</ReactMapGL>
);
}
}
export default LocateUsers;
Does anyone know why it's not showing? Nothing appears at all.