GLMapTrackLayer
Objective-C
@interface GLMapTrackLayer : GLMapDrawObject
Swift
class GLMapTrackLayer : GLMapDrawObject
GLMapTrackLayer is a subclass of GLMapDrawObject that is optimized to render GPS tracks on the map.
-
Initializes a layer that will be injected into map tile data
Declaration
Objective-C
- (nonnull instancetype)init;Swift
init() -
Initializes a new GLMapTrackLayer.
Declaration
Objective-C
- (instancetype _Nonnull)initWithDrawOrder:(int32_t)drawOrder;Swift
init(drawOrder: Int32)Parameters
drawOrderThe order of the object.
-
Sets new tracks and style.
Declaration
Objective-C
- (void)setStyle:(nonnull GLMapVectorStyle *)style andCallback:(nonnull GLMapTrackDataCallback)callback;Swift
func setStyle(_ style: GLMapVectorStyle, andCallback callback: @escaping GLMapTrackDataCallback)Parameters
styleThe style for the tracks.
callbackA callback that provides data for the bbox.
Install in Dash