allLayerProperties property
implemented to define the layer properties
Implementation
@override
List<LayerProperties> get allLayerProperties => [
SymbolLayerProperties(
iconSize: [Expressions.get, 'iconSize'],
iconImage: [Expressions.get, 'iconImage'],
iconRotate: [Expressions.get, 'iconRotate'],
iconOffset: [Expressions.get, 'iconOffset'],
iconAnchor: [Expressions.get, 'iconAnchor'],
iconOpacity: [Expressions.get, 'iconOpacity'],
iconColor: [Expressions.get, 'iconColor'],
iconHaloColor: [Expressions.get, 'iconHaloColor'],
iconHaloWidth: [Expressions.get, 'iconHaloWidth'],
iconHaloBlur: [Expressions.get, 'iconHaloBlur'],
// note that web does not support setting this in a fully data driven
// way this is a upstream issue
textFont: kIsWeb
? null
: [
Expressions.caseExpression,
[Expressions.has, 'fontNames'],
[Expressions.get, 'fontNames'],
[
Expressions.literal,
["Open Sans Regular", "Arial Unicode MS Regular"]
],
],
textField: [Expressions.get, 'textField'],
textSize: [Expressions.get, 'textSize'],
textMaxWidth: [Expressions.get, 'textMaxWidth'],
textLetterSpacing: [Expressions.get, 'textLetterSpacing'],
textJustify: [Expressions.get, 'textJustify'],
textAnchor: [Expressions.get, 'textAnchor'],
textRotate: [Expressions.get, 'textRotate'],
textTransform: [Expressions.get, 'textTransform'],
textOffset: [Expressions.get, 'textOffset'],
textOpacity: [Expressions.get, 'textOpacity'],
textColor: [Expressions.get, 'textColor'],
textHaloColor: [Expressions.get, 'textHaloColor'],
textHaloWidth: [Expressions.get, 'textHaloWidth'],
textHaloBlur: [Expressions.get, 'textHaloBlur'],
symbolSortKey: [Expressions.get, 'zIndex'],
iconAllowOverlap: _iconAllowOverlap,
iconIgnorePlacement: _iconIgnorePlacement,
textAllowOverlap: _textAllowOverlap,
textIgnorePlacement: _textIgnorePlacement,
)
];