MSFTorqueTileLayer

Objective-C


@interface MSFTorqueTileLayer : MSFVectorTileLayer

Swift

class MSFTorqueTileLayer : MSFVectorTileLayer

A vector tile layer for rendering time-based animated point clouds.

  • Constructs a new TorqueTileLayer object from a data source and decoder.

    Declaration

    Objective-C

    - (id)initWithDataSource:(MSFTileDataSource *)dataSource
                     decoder:(MSFTorqueTileDecoder *)decoder;

    Swift

    init!(dataSource: MSFTileDataSource!, decoder: MSFTorqueTileDecoder!)

    Parameters

    dataSource

    The data source from which this layer loads data.

    decoder

    The tile decoder to use.

  • Counts and returns the number of visible features (points) at the specified frame. Note that this number depends on the view settings and may depend on the state of tiles. If not all tiles are loaded, the results could be off.

    Declaration

    Objective-C

    - (int)countVisibleFeatures:(int)frameNr;

    Swift

    func countVisibleFeatures(_ frameNr: Int32) -> Int32

    Parameters

    frameNr

    The frame number to use.

    Return Value

    The number of visible feature at the specified frame. If the frame is missing, 0 is returned.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;

    Swift

    func dealloc()