by clintmcmahon | Jun 22, 2020 | Code, JavaScript, Mapbox, React
Mapbox gives you the ability to load custom icons for different points in your maps. When I tried to load a custom icon to a Mapbox map I got the error “SCRIPT5: Access is denied.” in IE 11 – Firefox and Chrome loaded the icon fine. My code was...
by clintmcmahon | May 4, 2020 | Code, JavaScript, Mapbox, React
Here’s an example of how to create a Mapbox map in React using a GeoJSON data set. When I started building my first React Mapbox map I built them around some of the other pre-built components out there like ReactMapboxGL or react-map-gl. Both of these wrappers...