How to add a custom mapboxgl.js icontrol to react component?

442 Views Asked by At

I am having trouble to add a mapbox custom icontrol in react.

I found an example/approach with google maps here but I cannot find the equivalent with mapbox.

Specifically, I need to render a button on the map component which when clicked would open a menu drawer from the right side of the page

***just to clarify the drawer would cover the entire height of the view

div.drawer { height: 100vh; width 15vw;` }
0

There are 0 best solutions below