MaplyVectorStyleSettings
Objective-C
@interface MaplyVectorStyleSettings : NSObject
Swift
class MaplyVectorStyleSettings : NSObject
Settings that control how vector tiles look in relation to their styles.
These are set based on the sort of device we’re on, particularly retina vs. non-retina. They can be manipulated directly as well for your needs.
-
Initialize with the (presumably) retina scale
Declaration
Objective-C
- (instancetype _Nonnull)initWithScale:(CGFloat)scale;
Swift
init(scale: CGFloat)
-
Line widths will be scaled by this amount before display.
Declaration
Objective-C
@property (nonatomic) float lineScale;
Swift
var lineScale: Float { get set }
-
Text sizes will be scaled by this amount before display.
Declaration
Objective-C
@property (nonatomic) float textScale;
Swift
var textScale: Float { get set }
-
Markers will be scaled by this amount before display.
Declaration
Objective-C
@property (nonatomic) float markerScale;
Swift
var markerScale: Float { get set }
-
Importance for markers in the layout engine
Declaration
Objective-C
@property (nonatomic) float markerImportance;
Swift
var markerImportance: Float { get set }
-
Default marker size when none is specified
Declaration
Objective-C
@property (nonatomic) float markerSize;
Swift
var markerSize: Float { get set }
-
Importance for labels in the layout engine
Declaration
Objective-C
@property (nonatomic) float labelImportance;
Swift
var labelImportance: Float { get set }
-
If set we’ll use the zoom levels defined in the style
Declaration
Objective-C
@property (nonatomic) _Bool useZoomLevels;
Swift
var useZoomLevels: Bool { get set }
-
For symbols we’ll try to pull a UUID out of this field to stick in the marker and label uniqueID
Declaration
Objective-C
@property (nonatomic, nullable) NSString *uuidField;
Swift
var uuidField: String? { get set }
-
Draw priority calculated as offset from here
Declaration
Objective-C
@property (nonatomic) int baseDrawPriority;
Swift
var baseDrawPriority: Int32 { get set }
-
Offset between levels
Declaration
Objective-C
@property (nonatomic) int drawPriorityPerLevel;
Swift
var drawPriorityPerLevel: Int32 { get set }
-
The overall map scale calculations will be scaled by this amount.
We use the map scale calculations to figure out what is dispalyed and when. Not what to load in, mind you, that’s a separate, but related calculation. This controls the scaling of those calculations. Scale it down to load things in later, up to load them in sooner.
Declaration
Objective-C
@property (nonatomic) float mapScaleScale;
Swift
var mapScaleScale: Float { get set }
-
Dashed lines will be scaled by this amount before display.
Declaration
Objective-C
@property (nonatomic) float dashPatternScale;
Swift
var dashPatternScale: Float { get set }
-
Use widened vectors (which do anti-aliasing and such)
Declaration
Objective-C
@property (nonatomic) _Bool useWideVectors;
Swift
var useWideVectors: Bool { get set }
-
Where we’re using old vectors (e.g. not wide) scale them by this amount
Declaration
Objective-C
@property (nonatomic) float oldVecWidthScale;
Swift
var oldVecWidthScale: Float { get set }
-
If we’re using widened vectors, only activate them for strokes wider than this. Defaults to zero.
Declaration
Objective-C
@property (nonatomic) float wideVecCuttoff;
Swift
var wideVecCuttoff: Float { get set }
-
If set, this is the shader we’ll use on the areal features.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable arealShaderName;
Swift
var arealShaderName: String? { get set }
-
If set, we’ll make all the features selectable. If not, we won’t.
Declaration
Objective-C
@property (nonatomic) _Bool selectable;
Swift
var selectable: Bool { get set }
-
If set, icons will be loaded from this directory
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable iconDirectory;
Swift
var iconDirectory: String? { get set }
-
The default font family for all text
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable fontName;
Swift
var fontName: String? { get set }