-
Notifications
You must be signed in to change notification settings - Fork 49
Description
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 
The source properties are not reflected as show here: 
but when I manually add a source like so:

Properties are show: 
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!