DashImageRepresentation

public class DashImageRepresentation : MapPolyline.Representation

Represents a dash pattern for the map polyline consisting of images rendered with certain gaps from each other.

This dash pattern representation consists only of images rendered at certain points along the polyline. For rendering them without any distortions, polyline gets sliced into series of straight segments that are multiple of sum of dash and gap lengths. For this reason, the new polyline geometry might not align fully with original geometry.

The MapPolyline.DashImageRepresentation.dashImage is stretched according to MapPolyline.DashImageRepresentation.dashLength and MapPolyline.DashImageRepresentation.dashWidth, with image’s width matched to dashLength and image’s height matched to dashWidth. The image is oriented so that its bottom is on the left-hand side between vertices n and n+1.

The spacing between images is specified by MapPolyline.DashImageRepresentation.gapLength.

Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.