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.

  • Unavailable

    GLMapTrackLayer should be created with [GLMapTrackLayer initWithDrawOrder:]

    Default -init is disabled.

    Declaration

    Objective-C

    - (instancetype _Nonnull)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.