MaplyVectorStyle
Objective-C
@protocol MaplyVectorStyle <NSObject>
Swift
protocol MaplyVectorStyle : NSObjectProtocol
Base protocol for the vector styles.
Maply Vector Style is the protocol the your vector style needs to implement for the vector tile parsers to recognize it.
-
Unique Identifier for this style
Declaration
Objective-C
- (long long)uuid;
Swift
func uuid() -> Int64
-
Category used for sorting
Declaration
Objective-C
- (NSString *_Nullable)getCategory;
Swift
func getCategory() -> String?
-
Set if this geometry is additive (e.g. sticks around) rather than replacement
Declaration
Objective-C
- (_Bool)geomAdditive;
Swift
func geomAdditive() -> Bool
-
Construct objects related to this style based on the input data.
Declaration
Objective-C
- (void)buildObjects:(NSArray *_Nonnull)vecObjs forTile:(MaplyVectorTileData *_Nonnull)tileData viewC:(NSObject<MaplyRenderControllerProtocol> *_Nonnull)viewC;
Swift
func build(_ vecObjs: [Any], forTile tileData: MaplyVectorTileData, viewC: NSObjectProtocol & MaplyRenderControllerProtocol)