MapPolylineDashImageRepresentation.uniform constructor
- MapMeasureDependentRenderSize dashLength,
- MapMeasureDependentRenderSize dashWidth,
- 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.
-
dashLengthThe map measure dependent length of a dash, to which image width is stretched. -
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.uniform(MapMeasureDependentRenderSize dashLength, MapMeasureDependentRenderSize dashWidth, MapImage image) => $prototype.uniform(dashLength, dashWidth, image);