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
elementThe XML element corresponding to a symbolizer
tileStyleSettingsThe base MaplyVectorStyleSettings settings to apply.
viewCThe map or globe view controller.
minScaleDenomIf non-null, the minimum map scale at which to apply any constructed symbolizer.
maxScaleDenomIf non-null, the maximum map scale at which to apply any constructed symbolizer.
relativeDrawPriorityThe z-order relative to other vector features.
baseURLThe 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
SLDSymbolizer Class Reference