AWFMapItemStyle
Objective-C
@interface AWFMapItemStyle : NSObject <AWFStyleProvider>
Swift
class AWFMapItemStyle : NSObject, AWFStyleProvider
The AWFMapItemStyle
provides style information that is used for overlays and annotations when rendered on a map.
-
The identifier for the style.
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *identifier;
Swift
var identifier: String? { get set }
-
The text label for the style, usually displayed in annotation callouts or info windows.
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *label;
Swift
var label: String? { get set }
-
The color used to fill the shape’s path.
Declaration
Objective-C
@property (nonatomic, strong, nullable) UIColor *fillColor;
Swift
var fillColor: UIColor? { get set }
-
The color used to stroke the shape’s path.
Declaration
Objective-C
@property (nonatomic, strong, nullable) UIColor *strokeColor;
Swift
var strokeColor: UIColor? { get set }
-
Specifies the line width for the stroke around the shape.
Declaration
Objective-C
@property (nonatomic) CGFloat strokeWidth;
Swift
var strokeWidth: CGFloat { get set }
-
The default annotation style.
This value may be a single
AWFMapItemStyle
instance or a collection of styles as an instance ofAWFGroupedStyle
.Declaration
Objective-C
+ (nullable id)defaultStyle;
Swift
class func defaultStyle() -> Any?
-
Initializes and returns an empty style specification object.
Declaration
Objective-C
+ (nonnull instancetype)style;
Return Value
The initialized style object.
-
Returns a dictionary of legend view labels associated with their style/group identifiers.
Declaration
Objective-C
+ (nullable NSDictionary<NSString *, NSString *> *)labelsByIdentifier;
Swift
class func labelsByIdentifier() -> [String : String]?