MapPolylineSolidRepresentation constructor

MapPolylineSolidRepresentation(
  1. MapMeasureDependentRenderSize lineWidth,
  2. Color color,
  3. LineCap capShape
)

Creates a representation for a solid line without outline.

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

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

At map measures between two nearest given map measures line width 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.

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

Throws MapPolylineRepresentationInstantiationException. In case of invalid input parameters.

Implementation

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