Ensure MultiPolygons are rendered if only one of fill and stroke are set

This commit is contained in:
Tom Payne
2014-02-06 13:50:22 +01:00
parent 16b4c5c90e
commit 2993efb04f

View File

@@ -195,7 +195,7 @@ ol.renderer.vector.renderMultiPolygonGeometry_ =
goog.asserts.assertInstanceof(geometry, ol.geom.MultiPolygon);
var fillStyle = style.getFill();
var strokeStyle = style.getStroke();
if (!goog.isNull(strokeStyle) && !goog.isNull(fillStyle)) {
if (!goog.isNull(strokeStyle) || !goog.isNull(fillStyle)) {
var polygonReplay = replayGroup.getReplay(
style.getZIndex(), ol.render.ReplayType.POLYGON);
polygonReplay.setFillStrokeStyle(fillStyle, strokeStyle);