MaplyVectorTileStyle
Objective-C
@interface MaplyVectorTileStyle : NSObject <MaplyVectorStyle>
Swift
class MaplyVectorTileStyle : NSObject, MaplyVectorStyle
The Maply Vector Tile Style is an internal representation of the style JSON coming out of a Maply Vector Tile database.
-
Construct a style entry from an NSDictionary.
Declaration
Objective-C
+ (id)styleFromStyleEntry:(NSDictionary *)styleEntry settings:(MaplyVectorStyleSettings *)settings viewC:(NSObject<MaplyRenderControllerProtocol> *)viewC;
Swift
class func style(fromStyleEntry styleEntry: [AnyHashable : Any]!, settings: MaplyVectorStyleSettings!, viewC: (NSObjectProtocol & MaplyRenderControllerProtocol)!) -> Any!
-
Unique Identifier for this style
Declaration
Objective-C
@property (nonatomic) long long uuid;
Swift
var uuid: Int64 { get set }
-
Set if this geometry is additive (e.g. sticks around) rather than replacement
Declaration
Objective-C
@property (nonatomic) _Bool geomAdditive;
Swift
var geomAdditive: Bool { get set }
-
Construct a style entry from an NSDictionary
Declaration
Objective-C
- (instancetype)initWithStyleEntry:(NSDictionary *)styleEntry viewC:(NSObject<MaplyRenderControllerProtocol> *) viewC;
Swift
init!(styleEntry: [AnyHashable : Any]!, viewC: (NSObjectProtocol & MaplyRenderControllerProtocol)!)
-
Turn the min/maxscaledenom into height ranges for minVis/maxVis
Declaration
Objective-C
- (void)resolveVisibility:(NSDictionary *)styleEntry settings:(MaplyVectorStyleSettings *)settings desc:(NSMutableDictionary *)desc;
Swift
func resolveVisibility(_ styleEntry: [AnyHashable : Any]!, settings: MaplyVectorStyleSettings!, desc: NSMutableDictionary!)
-
parse a mapnik style template string
Declaration
Objective-C
- (NSString *)formatText:(NSString *)formatString forObject:(MaplyVectorObject *)vec;
Swift
func formatText(_ formatString: String!, for vec: MaplyVectorObject!) -> String!
-
The view controller we’re constructing objects in
Declaration
Objective-C
@property (nonatomic, weak) NSObject<MaplyRenderControllerProtocol> *viewC;
Swift
weak var viewC: (NSObjectProtocol & MaplyRenderControllerProtocol)! { get set }
-
If set, we create selectable objects This controls whether the objects we create are selectable. Off by default.
Declaration
Objective-C
@property (nonatomic) _Bool selectable;
Swift
var selectable: Bool { get set }
-
Parse the various types of color strings
Declaration
Objective-C
+ (id)ParseColor:(NSString *)colorStr;
Swift
class func parseColor(_ colorStr: String!) -> Any!
-
Parse an RGB color and fill in the alpha
Declaration
Objective-C
+ (id)ParseColor:(NSString *)colorStr alpha:(CGFloat)alpha;
Swift
class func parseColor(_ colorStr: String!, alpha: CGFloat) -> Any!