MapPolylineDashRepresentation constructor - MapPolylineDashRepresentation - mapview library - Dart API
MapPolylineDashRepresentation constructor
- MapMeasureDependentRenderSize lineWidth,
- MapMeasureDependentRenderSize dashLength,
- MapMeasureDependentRenderSize gapLength,
- Color dashColor,
Creates a representation for a dashed line.
Gaps are not displayed.
At map measures smaller than the smallest map measure in the lineWidth,
dashLength and gapLength, the value used for rendering is constant
and equal to the value given for the smallest map measure in the
respective MapMeasureDependentRenderSize object.
At map measures bigger than the biggest map measure in the lineWidth,
dashLength and gapLength, the value used for rendering is constant
and equal to the value given for the biggest map measure in the
respective MapMeasureDependentRenderSize object.
At map measures between two nearest given map measures, the values are linearly interpolated between values given for these map measures.
For MapMeasureKind only MapMeasureKind.zoomLevel is supported.
For RenderSizeUnit only RenderSizeUnit.pixels is supported.
All sizes must not be 0 (MapMeasureDependentRenderSize.sizes with all values set to 0.0).
-
lineWidthThe width of the polyline depending on the map measure. -
dashLengthThe dash length of the polyline depending on the map measure. -
gapLengthThe gap length of the polyline depending on the map measure. -
dashColorThe dash color of the polyline.
Throws MapPolylineRepresentationInstantiationException. In case of invalid input parameters.
Implementation
factory MapPolylineDashRepresentation(MapMeasureDependentRenderSize lineWidth, MapMeasureDependentRenderSize dashLength, MapMeasureDependentRenderSize gapLength, ui.Color dashColor) => $prototype.$init(lineWidth, dashLength, gapLength, dashColor);