mapbox / mapbox-gl-js

Interactive, thoroughly customizable maps in the browser, powered by vector tiles and WebGL
https://docs.mapbox.com/mapbox-gl-js/
Other
10.87k stars 2.19k forks source link

GeoJsonSource doesn't provide a method to update partial features that have been deleted or modified. #13188

Open heavis opened 1 month ago

heavis commented 1 month ago

In my use case, I would load more than 100,000 features data with GeoJsonSource and then edit some of them. GeoJsonSource only provides the setData method to reset all feature data. GeoJsonSource will pass all data to the worker thread for tile cutting, but the transfer of large data between the UI thread and the worker is time-consuming, leading to rendering lag. How can this issue be resolved?