MapPolylineDashImageRepresentation constructor

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

Creates a simple dash pattern in which the lengths of a dash and gap can be different.

Dashes are rendered as image.

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

For MapMeasureDependentRenderSize supplied for dashLength, gapLength 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.

  • gapLength The map measure dependent length of a gap between dash images.

  • 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(MapMeasureDependentRenderSize dashLength, MapMeasureDependentRenderSize gapLength, MapMeasureDependentRenderSize dashWidth, MapImage image) => $prototype.$init(dashLength, gapLength, dashWidth, image);