Permalink
Browse files

Avoid filling/stroking parts of multi-polygons twice

  • Loading branch information...
1 parent db4e624 commit f93bf2ad777a059a17c683997c5790761d541814 @tschaub tschaub committed Mar 8, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/ol/renderer/canvas/canvasrenderer.js
@@ -231,7 +231,6 @@ ol.renderer.canvas.Renderer.prototype.renderPointFeatures_ =
*/
ol.renderer.canvas.Renderer.prototype.renderPolygonFeatures_ =
function(features, symbolizer) {
-
var context = this.context_,
strokeStyle = symbolizer.strokeStyle,
fillStyle = symbolizer.fillStyle,
@@ -287,7 +286,7 @@ ol.renderer.canvas.Renderer.prototype.renderPolygonFeatures_ =
// scenario 3 - fill and stroke each time
context.fill();
context.stroke();
- if (i < ii - 1) {
+ if (i < ii - 1 || j < jj - 1) {
context.beginPath();
}
}

0 comments on commit f93bf2a

Please sign in to comment.