- MapBox API has a huge learning curve if used with React.
- MapBox's Docs are a struggle to decipher since they show code snippets in HTML/JS only.
- MapBox's API has search-bar functionality, while React-map-gl's API doesn't.
- After asking the help of a friend (Bogdan), progress was made on this project after 3 weeks of failure.
npm install mapbox-gl --save
npm install --save @mapbox/mapbox-gl-geocoder
import mapboxgl from 'mapbox-gl'; import MapboxGeocoder from '@mapbox/mapbox-gl-geocoder'; import '@mapbox/mapbox-gl-geocoder/dist/mapbox-gl-geocoder.css';
https://docs.mapbox.com/mapbox-gl-js/example/