MaplyVectorTileData
Objective-C
@interface MaplyVectorTileData : NSObject
Swift
class MaplyVectorTileData : NSObject
Container for data parsed out of a Mapbox Vector Tile stream.
This holds the parsed data as well as post-constructed data. You will likely be handed one of these if you see it at all. There are few cases where you might construct one.
-
Initialize with tile and bounds, both local coordinates and geographic
Declaration
Objective-C
- (id)initWithID:(MaplyTileID)tileID bbox:(MaplyBoundingBoxD)bbox geoBBox:(MaplyBoundingBoxD)geoBBox;
Swift
init!(id tileID: MaplyTileID, bbox: MaplyBoundingBoxD, geoBBox: MaplyBoundingBoxD)
-
Tile ID for the tile being built
Declaration
Objective-C
@property (readonly) MaplyTileID tileID;
Swift
var tileID: MaplyTileID { get }
-
Bounding box in local coordinates
Declaration
Objective-C
@property (readonly) MaplyBoundingBoxD bounds;
Swift
var bounds: MaplyBoundingBoxD { get }
-
Bounding box in geographic
Declaration
Objective-C
@property (readonly) MaplyBoundingBoxD geoBounds;
Swift
var geoBounds: MaplyBoundingBoxD { get }
-
Add a single component object for tracking
Declaration
Objective-C
- (void)addComponentObject:(MaplyComponentObject *)compObj;
Swift
func addComponentObject(_ compObj: MaplyComponentObject!)
-
When a style builds a component object, it needs to add it here for tracking. This lets us delete it later.
Declaration
Objective-C
- (void)addComponentObjects:(NSArray *)compObjs;
Swift
func addComponentObjects(_ compObjs: [Any]!)
-
Return all the component objects thus collected
Declaration
Objective-C
- (NSArray *)componentObjects;
Swift
func componentObjects() -> [Any]!