Class MapPolyline.DashImageRepresentation

Enclosing class:
MapPolyline

public static final class MapPolyline.DashImageRepresentation extends 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 getDashImage() is stretched according to getDashLength() and getDashWidth(), 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 getGapLength().

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.