DingiMultiPolyline


@interface DingiMultiPolyline : DingiShape <DingiOverlay>

An DingiMultiPolyline object represents a shape consisting of one or more polylines. For example, you could use a multipolyline shape to represent both sides of a divided highway (dual carriageway), excluding the median (central reservation): each carriageway would be a distinct DingiPolyline object.

You can add multipolyline shapes to the map by adding them to an DingiShapeSource object. Configure the appearance of an DingiShapeSource’s or DingiVectorTileSource’s multipolylines collectively using an DingiLineStyleLayer or DingiSymbolStyleLayer object.

You cannot add an DingiMultiPolyline object directly to a map view using -[DingiMapView addAnnotation:] or -[DingiMapView addOverlay:]. However, you can add the polylines array’s items as overlays individually.

A multipolyline is known as a MultiLineString geometry in GeoJSON.

  • An array of polygons forming the multipolyline.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic)
        NSArray<DingiPolyline *> *_Nonnull polylines;

    Swift

    var polylines: [DingiPolyline] { get }
  • Creates and returns a multipolyline object consisting of the given polylines.

    Declaration

    Objective-C

    + (nonnull instancetype)multiPolylineWithPolylines:
        (nonnull NSArray<DingiPolyline *> *)polylines;

    Swift

    convenience init(polylines: [DingiPolyline])

    Parameters

    polylines

    The array of polylines defining the shape.

    Return Value

    A new multipolyline object.