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

Add NSExpression syntax for coercing array to color #11011

Closed
1ec5 opened this issue Jan 24, 2018 · 2 comments
Closed

Add NSExpression syntax for coercing array to color #11011

1ec5 opened this issue Jan 24, 2018 · 2 comments
Assignees
Labels
GL JS parity For feature parity with Mapbox GL JS iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS
Milestone

Comments

@1ec5
Copy link
Contributor

1ec5 commented Jan 24, 2018

The NSExpression-based property value implementation in #10726 lacks a way to represent the to-rgba operator for coercing an array into a color, although it does support color values in general.

@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 labels Jan 24, 2018
@1ec5 1ec5 added this to the ios-v4.0.0 milestone Jan 24, 2018
@1ec5
Copy link
Contributor Author

1ec5 commented Apr 4, 2018

#11389 added support for the rgba operator but not the to-rgba operator. A natural translation of to-rgba would be CAST(…, 'UIColor') on iOS and CAST(…, 'NSColor') on macOS.

@fabian-guerra fabian-guerra self-assigned this Apr 17, 2018
@1ec5 1ec5 modified the milestones: ios-v4.0.0, ios-v4.0.1 Apr 18, 2018
@fabian-guerra
Copy link
Contributor

Fixed in #11725

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
Projects
None yet
Development

No branches or pull requests

2 participants