lineDashPattern property
Specifies the lengths of the alternating dashes and gaps that form the dash
pattern. The lengths are later scaled by the line width. To convert a dash
length to points, multiply the length by the current line width. Note that
GeoJSON sources with lineMetrics: true specified won't render dashed lines to
the expected scale. Also note that zoom-dependent expressions will be evaluated
only at integer zoom levels.
This property is measured in line widths.
This property is only applied to the style if linePattern is set to nil.
Otherwise, it is ignored.
This attribute corresponds to the line-dasharray
layout property in the MapLibre Style Spec.
You can set this property to an expression containing any of the following:
Constant array values no less than 0
Predefined functions, including mathematical and string operators
Conditional expressions
Variable assignments and references to assigned variables
Step functions applied to the $zoomLevel variable
This property does not support applying interpolation functions to the
$zoomLevel variable or applying interpolation or step functions to feature
attributes.
Implementation
NSExpression get lineDashPattern {
final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_lineDashPattern);
return NSExpression.castFromPointer(_ret, retain: true, release: true);
}
Specifies the lengths of the alternating dashes and gaps that form the dash
pattern. The lengths are later scaled by the line width. To convert a dash
length to points, multiply the length by the current line width. Note that
GeoJSON sources with lineMetrics: true specified won't render dashed lines to
the expected scale. Also note that zoom-dependent expressions will be evaluated
only at integer zoom levels.
This property is measured in line widths.
This property is only applied to the style if linePattern is set to nil.
Otherwise, it is ignored.
This attribute corresponds to the line-dasharray
layout property in the MapLibre Style Spec.
You can set this property to an expression containing any of the following:
Constant array values no less than 0
Predefined functions, including mathematical and string operators
Conditional expressions
Variable assignments and references to assigned variables
Step functions applied to the $zoomLevel variable
This property does not support applying interpolation functions to the
$zoomLevel variable or applying interpolation or step functions to feature
attributes.
Implementation
set lineDashPattern(NSExpression value) {
_objc_msgSend_xtuoz7(this.ref.pointer, _sel_setLineDashPattern_, value.ref.pointer);
}