if (symbolizer.getStroke() != null) {
setLineStyle(style, feature, symbolizer.getStroke());
}
// fill
PolyStyle ps = style.createAndSetPolyStyle();
Fill fill = symbolizer.getFill();
if (fill != null) {
// get opacity
Double opacity = fill.getOpacity().evaluate(feature, Double.class);
if (opacity == null || Double.isNaN(opacity)) {
opacity = 1.0;
}
Color color = (Color) fill.getColor().evaluate(feature, Color.class);
ps.setColor(colorToHex(color, opacity));
} else {
// make it transparent
ps.setColor("00aaaaaa");
}
// outline
if (symbolizer.getStroke() != null || forceOutline) {
ps.setOutline(true);
}
}