MapPolylineDashRepresentation.withGapColor constructor

MapPolylineDashRepresentation.withGapColor(
  1. MapMeasureDependentRenderSize lineWidth,
  2. MapMeasureDependentRenderSize dashLength,
  3. MapMeasureDependentRenderSize gapLength,
  4. Color dashColor,
  5. Color gapColor,
)

Creates a representation for a dashed line with both dash and the gap being colored.

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).

  • lineWidth The width of the polyline depending on the map measure.

  • dashLength The dash length of the polyline depending on the map measure.

  • gapLength The gap length of the polyline depending on the map measure.

  • dashColor The color of the dashes.

  • gapColor The color of the gaps.

Throws MapPolylineRepresentationInstantiationException. In case of invalid input parameters.

Implementation

factory MapPolylineDashRepresentation.withGapColor(MapMeasureDependentRenderSize lineWidth, MapMeasureDependentRenderSize dashLength, MapMeasureDependentRenderSize gapLength, ui.Color dashColor, ui.Color gapColor) => $prototype.withGapColor(lineWidth, dashLength, gapLength, dashColor, gapColor);