saveDisplayRuleValue method
Implementation
void saveDisplayRuleValue(
String value, MPDisplayRule displayRule, String setting) {
switch (value) {
case "icon":
displayRule.setIcon(setting);
break;
case "label":
displayRule.setLabel(setting);
break;
case "polygonStrokeColor":
displayRule.setPolygonStrokeColor(setting);
break;
case "polygonFillColor":
displayRule.setPolygonFillColor(setting);
break;
}
}