Mapbox-gl-js: What is the proper way to do filtering for a cluster layer?

Created on 26 May 2016  Â·  1Comment  Â·  Source: mapbox/mapbox-gl-js

Could you share the best recommended way how to do filtering of Features for a cluster layer?
The most preferred way is to filter Feature by property.
But, as I understand, filtering for cluster cannot orient to properties. Is it correct or no?
Details of the task:

  • I have list of features, they are clustered
  • Then, some property is changing
  • I want to filter Features based on changed property, so they will not be inside clusters (disappear from map)

Most helpful comment

Closing as a duplicate of #2613 — currently you'll have to filter manually and run setData to reset the whole dataset, but we'll look into implementing such a feature in GL JS.

>All comments

Closing as a duplicate of #2613 — currently you'll have to filter manually and run setData to reset the whole dataset, but we'll look into implementing such a feature in GL JS.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PBrockmann picture PBrockmann  Â·  3Comments

yoursweater picture yoursweater  Â·  3Comments

mollymerp picture mollymerp  Â·  3Comments

aendrew picture aendrew  Â·  3Comments

bgentry picture bgentry  Â·  3Comments