GLMapTrack


@interface 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

    - (instancetype _Nonnull)init;
  • Initializes new GLMapTrack

    Declaration

    Objective-C

    - (instancetype _Nonnull)initWithDrawOrder:(int32_t)drawOrder
                                  andTrackData:(GLMapTrackData *_Nullable)data;

    Parameters

    drawOrder

    order of object

    data

    optional track data

  • Sets track width and other properties

    Declaration

    Objective-C

    - (void)setStyle:(GLMapVectorStyle *_Nullable)style;

    Parameters

    style

    New track style

  • Sets track data

    Declaration

    Objective-C

    - (void)setTrackData:(GLMapTrackData *_Nullable)data;

    Parameters

    data

    New track data

  • Color of track from start to progress index

    Declaration

    Objective-C

    @property (nonatomic) GLMapColor progressColor;
  • Track from start to progress index will change color to progress color. Animatable.

    Declaration

    Objective-C

    @property (nonatomic) double progressIndex;