Porting styling `text-color` with image fallback expressions
SnailBones opened this issue · 1 comments
SnailBones commented
Issue to track porting of mapbox/mapbox-gl-js#11049.
The following style needs to work in order to support beta shields with fallbacks:
'icon-image': [
'case',
['has', 'shield_beta'],
[
'coalesce',
['image', ['concat', ['get', 'shield_beta'], '-', ['to-string', ['get', 'reflen']]]],
['image', ['concat', 'default-', ['to-string', ['get', 'reflen']]]]
],
['concat', ['get', 'shield'], '-', ['to-string', ['get', 'reflen']]]
]
SnailBones commented
Closing in favor of https://github.com/mapbox/mapbox-gl-native-internal/issues/2573