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
drawOrderThe 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
lineStyleStyle used to draw the line segment under the arrow head.
headImageImage 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
lineLine geometry.
indexPoint index in the line where the arrow head is anchored.
Install in Dash