GLMapLineArrow

Objective-C


@interface GLMapLineArrow : GLMapDrawable

Swift

class GLMapLineArrow : GLMapDrawable

GLMapTrackArrow draws a directional arrow along a line on the map.

  • Initializes an empty image that will be displayed with the given drawOrder.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDrawOrder:(int32_t)drawOrder;

    Swift

    init(drawOrder: Int32)

    Parameters

    drawOrder

    The draw order of the object.

  • Initializes an image that will be injected into map tile data (for example, you can add a vector object that is drawn beneath map elements).

    Declaration

    Objective-C

    - (nonnull instancetype)init;

    Swift

    init()
  • Configures the arrow line style and head image.

    Declaration

    Objective-C

    - (void)setLineStyle:(nonnull GLMapVectorStyle *)lineStyle
               headImage:(nonnull PlatformImage *)headImage;

    Swift

    func setLineStyle(_ lineStyle: GLMapVectorStyle, head headImage: NSImage)

    Parameters

    lineStyle

    Style used to draw the line segment under the arrow head.

    headImage

    Image used as the arrow head.

  • Sets the line and point index where the arrow should be placed.

    Declaration

    Objective-C

    - (void)setLine:(nonnull GLMapVectorLine *)line index:(uint32_t)index;

    Swift

    func setLine(_ line: GLMapVectorLine, index: UInt32)

    Parameters

    line

    Line geometry.

    index

    Point index in the line where the arrow head is anchored.