I'm working on a React app with a mapbox component and am trying to understand the use case for react-map-gl vs the examples on the Mapbox site that just use mapbox-gl. From the React GitHub issues they mention this in regards to performance -
React may decide to render more than necessary than Mapbox would on its own, failing to account for how expensive the draw call is.
If you are using mapbox as nothing but a map display, generally speaking you do not need this library. If you are trying to match the map with any other React component, you will eventually run into the same issue.
But then the entire Mapbox studio is written I believe without any react wrappers...and there are plenty of React components in Studio besides the map, so it does not seem like this argument holds true. Anyone have thoughts or experience they can share?
I'm really starting to get frustrated with this. I've seen a split between using react-map-gl and mapbox-gl usage in tutorials. It's all honestly kind of a mess cos no one tutorial/documentation is what I need it for. I thought I had figured something out but I realized my .js files arent acutally responisble for rendering the map. It's only rendering because of a <script> tag I found in one tutorial in the index.html file which is I feel like that's not what I want ultimately.
Ultimately I know I'm going to have to loop thru gelocation data in an API to add points on a map but if it's only because of that tag in html then why the hell use React to begin with? It's weird to me I can't find a striaght answer considering how popular React is.
I also hate JavaScript (cliche, I know) and am much more competent in Python so I'm considering scrapping this (honestly for like the sixth time now) and starting over in Django or Flask even thought I have zero experience with them.
Thoughts?
Does anyone have any experience incorporating mapbox with plotted points from their json in a react app? There are a serious lack of tutorials out there, and the docs for Mapbox are insane.
Hi all,
Now that it's 2019, I'd like to know your take on the performance of react-native-mapbox-gl vs react-native-maps. There was a post last year that react-native-mapbox-gl still had lots of issues but could be production-worthy in 2 months since that post. I'm seriously considering using react-native-mapbox-gl because I don't want to create a billing account in the google maps API, but I'm not sure if it's already a package that can be used in production.
Right now I just need the maps and showing pins functionality. Has any of you used react-native-mapbox-gl and how does it hold up in terms of performance and design/UI?
Thank you
I want to generate maps but I have found d3.js to be quite difficult for something basic, in my case, a map showing europe with a popup when you press a country giving some information about it. I have used React-leaflet but I don't like the tiles, I want something abit more basic in a way, that doesn't show all the roads and stuff
Hello, I can't decide between using react-map-gl or mapbox-gl. I have limited knowledge in this aspect, which do you think is more optimized/better overall?
I have a web app that is fairly simple, it's a map built with Mapbox and react-map-gl that displays a layer of tiles.
I'd like to write end-to-end tests for the map itself, and ultimately have these tests be a part of the CI/CD pipeline. The tests would be of the following, fairly basic nature:
it should load... it should display a polygon with X name... it should display polygons with a white fill color...
In other words, pretty simple stuff to ensure that new PRs don't break the basics.
The thing is that I'm having trouble finding information about how mapping apps like this one are actually tested.
The best lead I can find is that deck.gl has some testing features and can supposedly integrate with react-map-gl.
How exactly are tests written for mapping apps?
Any good map rendering libraries for React or Next.
I followed the getting started guide and this error:
Fetch API cannot load mapbox://styles/mapbox/streets-v9. URL scheme "mapbox" is not supported.
Even if I use a URL like this: https://api.mapbox.com/styles/v1/mapbox/streets-v11
I get an error because it seems like the mapbox style contains "mapbox://". The example provided in the react-map-gl repo does not work