MapPolylineSolidRepresentation.withOutline constructor

MapPolylineSolidRepresentation.withOutline(
  1. MapMeasureDependentRenderSize lineWidth,
  2. Color color,
  3. MapMeasureDependentRenderSize outlineWidth,
  4. Color outlineColor,
  5. LineCap capShape,
)

Creates a representation for a solid line with outline.

The total width of the polyline is line width + 2 * outline width.

At map measures smaller than smallest map measure in the lineWidth and outlineWidth, the value is constant and equal to the width given for the smallest map measure in the lineWidth and outlineWidth.

At map measures bigger than biggest map measure in the lineWidth and outlineWidth, the value is constant and equal to the width given for the biggest map measure in the lineWidth and outlineWidth.

At map measures between two nearest given map measure is linearly interpolated between width values given for these map measures.

For MapMeasureKind only MapMeasureKind.zoomLevel is supported.

For RenderSizeUnit only RenderSizeUnit.pixels is supported.

lineWidth must not be 0 (lineWidth.sizes with all values set to 0.0).

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

  • color The color of the polyline.

  • outlineWidth The width of the outline on one side of the polyline depending on the map measure.

  • outlineColor The outline color of the polyline.

  • capShape The cap shape applied to both ends of the polyline.

Throws MapPolylineRepresentationInstantiationException. In case of invalid input parameters.

Implementation

factory MapPolylineSolidRepresentation.withOutline(MapMeasureDependentRenderSize lineWidth, ui.Color color, MapMeasureDependentRenderSize outlineWidth, ui.Color outlineColor, LineCap capShape) => $prototype.withOutline(lineWidth, color, outlineWidth, outlineColor, capShape);