VectorMapLayer.ImportSldFromString

VectorMapLayer.ImportSldFromString method

Imports style from the specified Styled Layer Descriptor string.

public void ImportSldFromString(string sld, SldImportOptions options = null)
ParameterTypeDescription
sldStringStyled Layer Descriptor.
optionsSldImportOptionsImport options.

Exceptions

exceptioncondition
ArgumentNullExceptionArgument is null.
XmlExceptionAn error occurred while parsing the XML.
FormatExceptionNo SLD style was found in the XML.

Remarks

This method overwrites value of the Symbolizer property.

See Also