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
Describe the bug
setting cluster={true} on a Source component does not pass through. When inspecting the source after it's added, the cluster property does not show, but if I manually add a layer using map.addSource('map-data', {cluster: true}) and inspect, I see the properties. This is causing ['has', 'point_count'] not to work when attempting to cluster using mapbox layers.
To Reproduce
add cluster={true} to a source component, add a Layer component. Try to filter layer by ['has', 'point_count'] and call map.getStyle().sources and you'll see the cluster property missing.
Expected behavior
cluster properties should be passed to the mapbox source, using the filter ['has', 'point_count'] should work on layer component and filter component
Screenshots
When using the
Desktop (please complete the following information):
OS: macOs
Browser Chrome
Version [e.g. 22] 1.14.4
Additional context
We need to filter out non-clustered features, and there is no way to do that currently. If there is, please let us know!
The text was updated successfully, but these errors were encountered:
ajbraudev
changed the title
Source Component does not support cluster properties
Source component does not support cluster properties
Dec 13, 2021
Describe the bug
setting cluster={true} on a Source component does not pass through. When inspecting the source after it's added, the cluster property does not show, but if I manually add a layer using map.addSource('map-data', {cluster: true}) and inspect, I see the properties. This is causing ['has', 'point_count'] not to work when attempting to cluster using mapbox layers.
To Reproduce
add cluster={true} to a source component, add a Layer component. Try to filter layer by ['has', 'point_count'] and call map.getStyle().sources and you'll see the cluster property missing.
Expected behavior
cluster properties should be passed to the mapbox source, using the filter ['has', 'point_count'] should work on layer component and filter component
Screenshots
When using the
Desktop (please complete the following information):
Additional context
We need to filter out non-clustered features, and there is no way to do that currently. If there is, please let us know!
The text was updated successfully, but these errors were encountered: