Correct closing of polygons

This commit is contained in:
Tom Payne
2013-11-08 16:01:42 +01:00
parent 176a438a05
commit 7a6090df65

View File

@@ -223,6 +223,9 @@ ol.replay.canvas.Batch.prototype.drawPolygonGeometry =
type: ol.replay.canvas.InstructionType.MOVE_TO_LINE_TO,
argument: this.appendCoordinates_(rings[i], true)
});
this.instructions_.push({
type: ol.replay.canvas.InstructionType.CLOSE_PATH
});
}
this.state_.fillPending = true;
this.state_.strokePending = true;