VectorMapLayer.ImportSld

ImportSld(string, SldImportOptions)

Imports style from Styled Layer Descriptor file located at the specified path.

public void ImportSld(string path, SldImportOptions options = null)
ParameterTypeDescription
pathStringPath to the Styled Layer Descriptor file.
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


ImportSld(AbstractPath, SldImportOptions)

Imports style from Styled Layer Descriptor file located at the specified path.

public void ImportSld(AbstractPath path, SldImportOptions options = null)
ParameterTypeDescription
pathAbstractPathPath to the Styled Layer Descriptor file.
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