From 85ddd2446e3eecd567222e912607554aeac7e3ce Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Tue, 24 Jun 2014 11:18:56 +0200 Subject: [PATCH] Add endGeometry after hit detection stroke and fill --- src/ol/render/canvas/canvasreplay.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/render/canvas/canvasreplay.js b/src/ol/render/canvas/canvasreplay.js index ae2d385f93..96295e9d14 100644 --- a/src/ol/render/canvas/canvasreplay.js +++ b/src/ol/render/canvas/canvasreplay.js @@ -1269,7 +1269,6 @@ ol.render.canvas.PolygonReplay.prototype.drawCircleGeometry = var circleInstruction = [ol.render.canvas.Instruction.CIRCLE]; this.instructions.push(beginPathInstruction, circleInstruction); this.hitDetectionInstructions.push(beginPathInstruction, circleInstruction); - this.endGeometry(circleGeometry, data); var fillInstruction = [ol.render.canvas.Instruction.FILL]; this.hitDetectionInstructions.push(fillInstruction); if (goog.isDef(state.fillStyle)) { @@ -1281,6 +1280,7 @@ ol.render.canvas.PolygonReplay.prototype.drawCircleGeometry = this.instructions.push(strokeInstruction); this.hitDetectionInstructions.push(strokeInstruction); } + this.endGeometry(circleGeometry, data); };