addFeatureTypeStyle method
Add a new FTS with given ftsName
.
Implementation
SldObjectBuilder addFeatureTypeStyle(String ftsName) {
_commitRule();
_commitFeatureTypeStyle();
xml.XmlBuilder builder = xml.XmlBuilder();
builder.namespace(uriSld, SLD_NSP);
builder.element(FEATURETYPESTYLE, namespace: uriSld, nest: () {
builder.element(USERSTYLE_NAME, namespace: uriSld, nest: () {
builder.text(ftsName);
});
});
var build = builder.buildFragment();
currentFeatureTypeStyleBuild = build;
return this;
}