Open athoma13 opened 3 months ago
Edited for an easier reproduction on stackblitz
I am trying to use updateData on a GeoJSON source that has both dynamic=true and cluster=true.
Apologies for a confusing error message. The dynamic mode isn't designed to be used together with clustering, since the latter's algorithm requires reclustering the whole dataset on any change, so it can't take advantage of optimizations intended for non-clustering dynamic use cases. We'll add a meaningful error, but as a workaround, please use dynamic: false
and setData
instead.
Hi,
I am trying to use updateData on a GeoJSON source that has both dynamic=true and cluster=true. An exception is throw, and I cannot use updateData.
mapbox-gl-js version: 3.5.2
browser: chrome 127.0.6533.74
Steps to Trigger Behavior
Link to Demonstration
https://stackblitz.com/edit/mapbox-cluster-and-dynamic-bug?file=main.js
Expected Behavior
I should be allowed to call updateData on a source that has both cluster=true and dynamic=true, or at least an exception that makes sense if setting both flags simultaneously isn't allowed.
Actual Behavior