You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having a hard time following your API documentation with regard to drawing polygon features from a geoJSON source.
In your London (multiple markers) example, you seem to store the entire array of markers and their coordinates on state. Would you recommend this when you have tens of thousands of complex polygons? What would be your solution to drawing many polygons from a geoJSON source? Thanks!
My PR #44 should add the functionality you need. The problem is, React Mapbox GL actually generates GeoJSON for the features that are being rendered. If you did want to use it with your own GeoJSON, you either had to manually manage the source and add the sourceId to a layer ( 😢 ) or parse the GeoJSON and convert them into features... which are then converted back into GeoJSON 😭
So in #44 I'm adding a GeoJSONLayer that will just take your data directly ;)
I am having a hard time following your API documentation with regard to drawing polygon features from a geoJSON source.
In your London (multiple markers) example, you seem to store the entire array of markers and their coordinates on state. Would you recommend this when you have tens of thousands of complex polygons? What would be your solution to drawing many polygons from a geoJSON source? Thanks!
I have tried the following:
Thank you in advance!
The text was updated successfully, but these errors were encountered: