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

Add NSExpression syntax for coalesce, match operators #11009

Closed
1ec5 opened this issue Jan 24, 2018 · 1 comment
Closed

Add NSExpression syntax for coalesce, match operators #11009

1ec5 opened this issue Jan 24, 2018 · 1 comment
Assignees
Labels
GL JS parity For feature parity with Mapbox GL JS iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS release blocker Blocks the next final release runtime styling

Comments

@1ec5
Copy link
Contributor

1ec5 commented Jan 24, 2018

The NSExpression-based property value implementation in #10726 lacks a way to represent the style specification’s coalesce and match operators. These operators are important as replacements for certain kinds of style functions. Both workarounds are especially problematic:

  • Nested conditionals (cumbersome)
  • Applying the valueForKeyPath: custom function to a stop dictionary (clunky)
@1ec5 1ec5 added GL JS parity For feature parity with Mapbox GL JS iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS runtime styling labels Jan 24, 2018
@1ec5 1ec5 added this to the ios-v4.0.0 milestone Jan 24, 2018
@lilykaiser lilykaiser added the release blocker Blocks the next final release label Feb 20, 2018
@fabian-guerra fabian-guerra self-assigned this Mar 15, 2018
@1ec5
Copy link
Contributor Author

1ec5 commented Mar 27, 2018

Implemented in #11464 for iOS SDK v4.0.0 and macOS SDK v0.7.0.

@1ec5 1ec5 closed this as completed Mar 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
GL JS parity For feature parity with Mapbox GL JS iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS release blocker Blocks the next final release runtime styling
Projects
None yet
Development

No branches or pull requests

3 participants