MapPolylineDashImageRepresentation constructor
- MapMeasureDependentRenderSize dashLength,
- MapMeasureDependentRenderSize gapLength,
- MapMeasureDependentRenderSize dashWidth,
- 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.
-
dashLengthThe map measure dependent length of a dash, to which image width is stretched. -
gapLengthThe map measure dependent length of a gap between dash images. -
dashWidthThe map measure dependent width of a dash, to which image height is stretched. -
imageImage to be rendered in place of dash space. It is stretched to matchdashWidthanddashLength.
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);