MapPolylineSolidRepresentation.withOutline constructor
- MapMeasureDependentRenderSize lineWidth,
- Color color,
- MapMeasureDependentRenderSize outlineWidth,
- Color outlineColor,
- 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).
-
lineWidthThe width of the polyline depending on the map measure. -
colorThe color of the polyline. -
outlineWidthThe width of the outline on one side of the polyline depending on the map measure. -
outlineColorThe outline color of the polyline. -
capShapeThe 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);