NTTorqueTileDecoder
@interface NTTorqueTileDecoder : NTVectorTileDecoder
A decoder for Torque layer that accepts json-based Torque tiles.
-
Constructs a new TorqueTileDecoder given style.
Warning
Throws NSException If the decoder could not be created or there are issues with the style set.Declaration
Objective-C
- (id)initWithStyleSet:(NTCartoCSSStyleSet *)styleSet;Parameters
styleSetThe style set used by decoder.
-
Returns the frame count defined in the Torque style.
Declaration
Objective-C
- (int)getFrameCount;Return Value
The frame count in the animation.
-
Returns the tile resolution, in pixels.
Declaration
Objective-C
- (int)getResolution;Return Value
The tile resolution in pixels.
-
Returns the animation duration, in seconds.
Declaration
Objective-C
- (float)getAnimationDuration;Return Value
The animation duration, in seconds.
-
Returns the current style set used by the decoder.
Declaration
Objective-C
- (NTCartoCSSStyleSet *)getStyleSet;Return Value
The current style set.
-
Sets the current style set used by the decoder.
Warning
Throws NSException If the decoder could not be updated or there are issues with the style set.Declaration
Objective-C
- (void)setStyleSet:(NTCartoCSSStyleSet *)styleSet;Parameters
styleSetThe new style set to use.
-
Undocumented
Declaration
Objective-C
- (void)addFallbackFont:(NTBinaryData *)fontData; -
Undocumented
Declaration
Objective-C
- (int)getMinZoom; -
Undocumented
Declaration
Objective-C
- (int)getMaxZoom; -
Undocumented
Declaration
Objective-C
-(void)dealloc;
View on GitHub
NTTorqueTileDecoder Class Reference