SLDSymbolizer
Objective-C
@interface SLDSymbolizer : NSObject
Swift
class SLDSymbolizer : NSObject
@brief Base class for Symbolizer elements
See
http://schemas.opengis.net/se/1.1.0/Symbolizer.xsd for SLD v1.1.0See
http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd for SLD v1.0.0-
Returns whether this class can parse the symbolizer corresponding to the provided element name.
Each subclass matches different symbolizer elements.
Declaration
Objective-C
+ (BOOL)matchesSymbolizerNamed:(NSString *_Nonnull)symbolizerName;
Swift
class func matchesSymbolizerNamed(_ symbolizerName: String) -> Bool
-
+maplyVectorTileStyleWithElement:
tileStyleSettings: viewC: minScaleDenom: maxScaleDenom: relativeDrawPriority: crossSymbolizerParams: baseURL: Produces MaplyVectorTileStyle objects for an SLD Symbolizer element
Parses the XML subtree and returns an array of corresponding MaplyVectorTileStyle objects.
Declaration
Objective-C
+ (NSArray<MaplyVectorTileStyle *> *_Nullable) maplyVectorTileStyleWithElement:(DDXMLElement *_Nonnull)element tileStyleSettings: (MaplyVectorStyleSettings *_Nonnull)tileStyleSettings viewC:(NSObject<MaplyRenderControllerProtocol> *_Nonnull)viewC minScaleDenom:(NSNumber *_Nonnull)minScaleDenom maxScaleDenom:(NSNumber *_Nonnull)maxScaleDenom relativeDrawPriority:(int)relativeDrawPriority crossSymbolizerParams: (NSMutableDictionary *_Nonnull)crossSymbolizerParams baseURL:(NSURL *_Nonnull)baseURL;
Swift
class func maplyVectorTileStyle(with element: DDXMLElement, tileStyleSettings: MaplyVectorStyleSettings, viewC: NSObjectProtocol & MaplyRenderControllerProtocol, minScaleDenom: NSNumber, maxScaleDenom: NSNumber, relativeDrawPriority: Int32, crossSymbolizerParams: NSMutableDictionary, baseURL: URL) -> [MaplyVectorTileStyle]?
Parameters
element
The XML element corresponding to a symbolizer
tileStyleSettings
The base MaplyVectorStyleSettings settings to apply.
viewC
The map or globe view controller.
minScaleDenom
If non-null, the minimum map scale at which to apply any constructed symbolizer.
maxScaleDenom
If non-null, the maximum map scale at which to apply any constructed symbolizer.
relativeDrawPriority
The z-order relative to other vector features.
baseURL
The base URL from which external resources (e.g. images) will be located.
Return Value
An array of MaplyVectorTileStyle objects corresponding to the particular XML element.
See
MaplyVectorTileStyleSee
MaplyVectorStyleSettings