MaplySimpleStyle
Objective-C
@interface MaplySimpleStyle : NSObject
Swift
class MaplySimpleStyle : NSObject
Holds info about a single style from the MaplySimpleStyleManager. This is enough to build a marker (or other thing, if you like).
-
If there was a title, this is it
Declaration
Objective-C
@property (nonatomic, nullable) NSString *title;
Swift
var title: String? { get set }
-
If there was a description, this is it
Declaration
Objective-C
@property (nonatomic, nullable) NSString *desc;
Swift
var desc: String? { get set }
-
Size (in pixels) of the marker to be built
Declaration
Objective-C
@property (nonatomic) CGSize markerSize;
Swift
var markerSize: CGSize { get set }
-
How big we consider the marker to be when doing layout. By default, same as the marker size
Declaration
Objective-C
@property (nonatomic) CGSize layoutSize;
Swift
var layoutSize: CGSize { get set }
-
Offset applied to marker
Declaration
Objective-C
@property (nonatomic) CGPoint markerOffset;
Swift
var markerOffset: CGPoint { get set }
-
Texture constructed for this icon, if there was a symbol
Declaration
Objective-C
@property (nonatomic, nullable) MaplyTexture *markerTex;
Swift
var markerTex: MaplyTexture? { get set }
-
If this was 0-9 or a-Z instead, this is that
Declaration
Objective-C
@property (nonatomic, nullable) NSString *markerString;
Swift
var markerString: String? { get set }
-
Color to set for the markert
Declaration
Objective-C
@property (nonatomic, nonnull) int *color;
Swift
var color: UnsafeMutablePointer<Int32> { get set }
-
Stroke color if there is one
Declaration
Objective-C
@property (nonatomic, nonnull) int *strokeColor;
Swift
var strokeColor: UnsafeMutablePointer<Int32> { get set }
-
Stroke opacity
Declaration
Objective-C
@property (nonatomic) float strokeOpacity;
Swift
var strokeOpacity: Float { get set }
-
Stroke width, if available. Takes scale into account.
Declaration
Objective-C
@property (nonatomic) float strokeWidth;
Swift
var strokeWidth: Float { get set }
-
Fill color if available
Declaration
Objective-C
@property (nonatomic, nonnull) int *fillColor;
Swift
var fillColor: UnsafeMutablePointer<Int32> { get set }
-
Fill opacity, if available
Declaration
Objective-C
@property (nonatomic) float fillOpacity;
Swift
var fillOpacity: Float { get set }