Avoid filling/stroking parts of multi-polygons twice
This commit is contained in:
@@ -231,7 +231,6 @@ ol.renderer.canvas.Renderer.prototype.renderPointFeatures_ =
|
|||||||
*/
|
*/
|
||||||
ol.renderer.canvas.Renderer.prototype.renderPolygonFeatures_ =
|
ol.renderer.canvas.Renderer.prototype.renderPolygonFeatures_ =
|
||||||
function(features, symbolizer) {
|
function(features, symbolizer) {
|
||||||
|
|
||||||
var context = this.context_,
|
var context = this.context_,
|
||||||
strokeStyle = symbolizer.strokeStyle,
|
strokeStyle = symbolizer.strokeStyle,
|
||||||
fillStyle = symbolizer.fillStyle,
|
fillStyle = symbolizer.fillStyle,
|
||||||
@@ -287,7 +286,7 @@ ol.renderer.canvas.Renderer.prototype.renderPolygonFeatures_ =
|
|||||||
// scenario 3 - fill and stroke each time
|
// scenario 3 - fill and stroke each time
|
||||||
context.fill();
|
context.fill();
|
||||||
context.stroke();
|
context.stroke();
|
||||||
if (i < ii - 1) {
|
if (i < ii - 1 || j < jj - 1) {
|
||||||
context.beginPath();
|
context.beginPath();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user