mapbox/mapbox-gl-native

Porting styling `text-color` with image fallback expressions

SnailBones opened this issue · 1 comments

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']]]
]

cc @ClareTrainor