Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

CONTAINS predicate operator should test whether a string contains a substring #11532

Closed
qin9smile opened this issue Mar 27, 2018 · 2 comments
Closed
Labels
archived Archived because of inactivity iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS runtime styling

Comments

@qin9smile
Copy link

MGLSymbolStyleLayer can add predicate like this
image

but actually i want to use 'CONTAINS' , but it's crashed with error:
'NSInvalidArgumentException', reason: 'IN not supported for string comparison.'

maybe it's not support 'CONTAINS' ?

@fabian-guerra fabian-guerra added the iOS Mapbox Maps SDK for iOS label Mar 27, 2018
@jmkiley jmkiley added the support label Apr 4, 2018
@1ec5
Copy link
Contributor

1ec5 commented Apr 4, 2018

The SDK does support CONTAINS for determining whether an array contains a string. However, it doesn’t support CONTAINS for determining whether a string contains a substring. That’s blocked by mapbox/mapbox-gl-js#4113. Additionally, in v4.0.0-beta.3, it’s a known issue that this operator doesn’t work at all: #11013.

@1ec5 1ec5 changed the title layer.predicate can add 'CONTAINS' condition? CONTAINS predicate operator should test whether a string contains a substring Apr 4, 2018
@1ec5 1ec5 added macOS Mapbox Maps SDK for macOS runtime styling labels Apr 4, 2018
@stale stale bot added the archived Archived because of inactivity label Nov 15, 2018
@stale
Copy link

stale bot commented Nov 25, 2018

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

@stale stale bot closed this as completed Nov 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived Archived because of inactivity iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS runtime styling
Projects
None yet
Development

No branches or pull requests

5 participants