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

Token defaults #3081

Closed
wants to merge 2 commits into from
Closed

Token defaults #3081

wants to merge 2 commits into from

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Nov 19, 2015

Tokens in style properties can now fall back on defaults: for example, {name_en:{name:?}} produces the value of name_en, falling back on name if name_en is undefined, and finally falling back on the string ? if neither is defined.

/ref mapbox/mapbox-gl-style-spec#104
/cc @jfirebaugh @ajashton

1ec5 added 2 commits November 19, 2015 15:29
{foo:bar} produces “bar” if foo is undefined.

/ref mapbox/mapbox-gl-style-spec#104
@jfirebaugh
Copy link
Contributor

Per mapbox/mapbox-gl-style-spec#362 (comment) we want to go with a different syntax.

@jfirebaugh jfirebaugh closed this Feb 2, 2016
@jfirebaugh jfirebaugh deleted the 1ec5-token-default-104 branch February 2, 2016 02:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants