is there any style expression function like Array.indexOf()

1. A concise explanation of the problem you're experiencing.
In my batch table, I has a array typed column named 'ids' which stores the data like ["AA|XXXX","BB|XXXX yysfdf","CC|dfdsf|dfssxx"]

In my idea, the 'ids' column is used to styling. if the array value ${ids}.indexOf(some value) !== -1, then color the feature.

But I can not found any style expression function like Array.indexOf.

I try to use regExp and convert the array to string "String(\{ids\}\)", but it's not good enough for the problem, because String\({ids}) is too many chars to get good performance. Another reason is that the id string contains many unexpected chars conflicting with regex expression.

2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

4. The Cesium version you're using, your operating system and browser.

Just in case anyone else stumbles on this thread, this was resolved here:

1 Like