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
drawOrder
The 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
style
The style for the tracks.
callback
A callback that provides data for the bbox.