This is cool, thanks for sharing. Have you used any of the popular React wrappers for mapbox gl, like react-map-gl or react-mapbox-gl? Would be interested to hear how this compares in your experience, if you feel like you have more control etc.
I looked at some of those. They have a different philosophy by trying to put everything into React. I can see the appeal there, and maybe it'd be beneficial for really dynamic and interactive maps. I didn't felt the need to add a thick and complex layer between React and mapbox. I just needed to render a map in the right place at the right time. I was able to accomplish that with ~20 lines of code and no extra dependencies. Perhaps my usecase is just really basic.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This is cool, thanks for sharing. Have you used any of the popular React wrappers for mapbox gl, like
react-map-glorreact-mapbox-gl? Would be interested to hear how this compares in your experience, if you feel like you have more control etc.I looked at some of those. They have a different philosophy by trying to put everything into React. I can see the appeal there, and maybe it'd be beneficial for really dynamic and interactive maps. I didn't felt the need to add a thick and complex layer between React and mapbox. I just needed to render a map in the right place at the right time. I was able to accomplish that with ~20 lines of code and no extra dependencies. Perhaps my usecase is just really basic.