-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setStyle diffing does not work if source gets clustered on the fly #5731
Comments
I'm not sure I understand the description here. There's no API method called |
sorry @jfirebaugh so indeed I meant setStyle. So initially, I have config like this passed as the style key in the map constructor:
Later on the This is the change I'm making to the source to be more explicit:
Hope it's more clear now. |
Ok, can you please put together a minimal self-contained demo on JSFiddle that demonstrates the issue? Thanks! |
@jfirebaugh sure see: https://jsfiddle.net/bartvde/0mknjj30/2/ Press the button and no redraw will happen. Change the fiddle to use diff: false and it works:
|
Thanks! Looks like this was a regression in #5332. |
mapbox-gl-js version: 0.42.1
Steps to Trigger Behavior
Expected Behavior
The points should appear clustered
Actual Behavior
The points do not appear clustered
If I start with cluster: true from the beginning all is fine. Also disabling the style diffing kind of works (ofcourse I get flashes on the map, but the clustering behaviour is as I would expect).
The text was updated successfully, but these errors were encountered: