Closed addboa closed 5 years ago
I think it's important for me to have multiple ShapeSource's because I would like to have unique on-click handling for each polygon.
I went in another direction and used FeatureCollection whose individual Features are returned by the FeatureCollection's onPress action
Props to @alexneigher for this direction
@addboa how you solved this problem to click a unique polygon of specific Feature. I have tried FeatureCollection already, it worked well but I don't have a clue to get the specific onClick for each polygon. Can you help me?
This is an old, stale library. Please move to new community supported one: https://github.com/rnmapbox/maps
I am trying to dynamically load multiple Shapesources in a Mapview in my React Native App. In the iOS View Hierarchy Debugger I can see that the ShapeSources are being created; however, they are not visible.
Is there a reason these views are not displaying?
Code
NOTE: When I pursue another route to display these polygons (using the coordinates to construct a multipolygon) the shapes display so the issue is not with my polygon's coordinates.
Related Issues that have not quite helped me solve the issue on React Native: https://github.com/mapbox/react-native-mapbox-gl/issues/948