MSFTorqueTileDecoder

Objective-C


@interface MSFTorqueTileDecoder : MSFVectorTileDecoder

Swift

class MSFTorqueTileDecoder : MSFVectorTileDecoder

A decoder for Torque layer that accepts json-based Torque tiles.

  • Constructs a new TorqueTileDecoder given style.

    Declaration

    Objective-C

    - (id)initWithStyleSet:(MSFCartoCSSStyleSet *)styleSet;

    Swift

    init!(styleSet: MSFCartoCSSStyleSet!)

    Parameters

    styleSet

    The style set used by decoder. @throws NSException If the decoder could not be created or there are issues with the style set.

  • Returns the frame count defined in the Torque style.

    Declaration

    Objective-C

    - (int)getFrameCount;

    Swift

    func getFrameCount() -> Int32

    Return Value

    The frame count in the animation.

  • Returns the tile resolution, in pixels.

    Declaration

    Objective-C

    - (int)getResolution;

    Swift

    func getResolution() -> Int32

    Return Value

    The tile resolution in pixels.

  • Returns the animation duration, in seconds.

    Declaration

    Objective-C

    - (float)getAnimationDuration;

    Swift

    func getAnimationDuration() -> Float

    Return Value

    The animation duration, in seconds.

  • Returns the current style set used by the decoder.

    Declaration

    Objective-C

    - (MSFCartoCSSStyleSet *)getStyleSet;

    Swift

    func getStyleSet() -> MSFCartoCSSStyleSet!

    Return Value

    The current style set.

  • Sets the current style set used by the decoder.

    Declaration

    Objective-C

    - (void)setStyleSet:(MSFCartoCSSStyleSet *)styleSet;

    Swift

    func setStyleSet(_ styleSet: MSFCartoCSSStyleSet!)

    Parameters

    styleSet

    The new style set to use. @throws NSException If the decoder could not be updated or there are issues with the style set.

  • Undocumented

    Declaration

    Objective-C

    - (void)addFallbackFont:(MSFBinaryData *)fontData;

    Swift

    func addFallbackFont(_ fontData: MSFBinaryData!)
  • Undocumented

    Declaration

    Objective-C

    - (int)getMinZoom;

    Swift

    func getMinZoom() -> Int32
  • Undocumented

    Declaration

    Objective-C

    - (int)getMaxZoom;

    Swift

    func getMaxZoom() -> Int32
  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;

    Swift

    func dealloc()