removePointStyle method
Remove a point symbolizer from the rule xml element.
The remove, the style
is used. The first equal to the style is removed.
Implementation
void removePointStyle(PointStyle style) {
bool removed = false;
ruleXmlElement.children.removeWhere((element) {
if (removed) {
return false;
}
if (element.outerXml
.toUpperCase()
.contains(POINTSYMBOLIZER.toUpperCase())) {
var tmpSymbolizer = PointSymbolizer(element as xml.XmlElement);
if (style == tmpSymbolizer.style) {
removed = true;
bool removedSym = false;
pointSymbolizers.removeWhere((element) {
if (removedSym) {
return false;
}
removedSym = element.style == tmpSymbolizer.style;
return removedSym;
});
return true;
}
}
return false;
});
}