MapPolylineDashImageRepresentation.uniform constructor

MapPolylineDashImageRepresentation.uniform(
  1. MapMeasureDependentRenderSize dashLength,
  2. MapMeasureDependentRenderSize dashWidth,
  3. MapImage image
)

Creates a uniform dash pattern in which the length of a gap is the same as the length of a dash.

Dashes are rendered as image.

This allows for patterns like ' — — — —' or ' —— —— ——'.

For MapMeasureDependentRenderSize supplied for dashLength and dashWidth, only MapMeasureKind.zoomLevel is supported for MapMeasureDependentRenderSize.measureKind and only RenderSizeUnit.meters is supported for MapMeasureDependentRenderSize.sizeUnit.

Only map measure values in range [3-19] are supported.

The value of the keys in MapMeasureDependentRenderSize.sizes is truncated to integer values, hence only a single value can be provided per zoom level.

The values are interpolated linearly between zoom levels.

  • dashLength The map measure dependent length of a dash, to which image width is stretched.

  • dashWidth The map measure dependent width of a dash, to which image height is stretched.

  • image Image to be rendered in place of dash space. It is stretched to match dashWidth and dashLength.

Throws MapPolylineRepresentationInstantiationException. In case of invalid input parameters.

Implementation

factory MapPolylineDashImageRepresentation.uniform(MapMeasureDependentRenderSize dashLength, MapMeasureDependentRenderSize dashWidth, MapImage image) => $prototype.uniform(dashLength, dashWidth, image);