GLMapTrack
Objective-C
@interface GLMapTrack : GLMapTrackLayer
Swift
class GLMapTrack : GLMapTrackLayer
GLMapTrack
is a container class for track objects. Main difference from line - data generalization function is used for tracks to remove data points
redundant for current zoom level.
-
Unavailable
GLMapTrack should be created with [GLMapTrack initWithDrawOrder:]
Plain -init is disabled
Declaration
Objective-C
- (nonnull instancetype)init;
-
Initializes new GLMapTrack
Declaration
Objective-C
- (nonnull instancetype)initWithDrawOrder:(int32_t)drawOrder;
Swift
init(drawOrder: Int32)
Parameters
drawOrder
order of object
-
Sets track width and other properties
Declaration
Objective-C
- (void)setStyle:(nonnull GLMapVectorStyle *)style;
Swift
func setStyle(_ style: GLMapVectorStyle)
Parameters
style
New track style
-
Sets track data
Declaration
Objective-C
- (void)setTrackData:(GLMapTrackData *_Nullable)data style:(nonnull GLMapVectorStyle *)style completion:(dispatch_block_t _Nullable)completion;
Swift
func setTrackData(_ data: GLMapTrackData?, style: GLMapVectorStyle) async
Parameters
data
New track data
-
Color of track from start to progress index
Declaration
Objective-C
@property (nonatomic) GLMapColor progressColor;
Swift
var progressColor: GLMapColor { get set }
-
Track from start to progress index will change color to progress color. Animatable.
Declaration
Objective-C
@property (nonatomic) double progressIndex;
Swift
var progressIndex: Double { get set }