Skip to content

Commit

Permalink
Fix canvas redraw when style updates fill and/or weight (Leaflet#5034)
Browse files Browse the repository at this point in the history
  • Loading branch information
perliedman authored and DiogoMCampos committed Dec 18, 2016
1 parent d891c9a commit 4b2065f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layer/vector/Canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ L.Canvas = L.Renderer.extend({

ctx.globalCompositeOperation = clear ? 'destination-out' : 'source-over';

if (options.fill) {
if (options.fill || clear) {
ctx.globalAlpha = clear ? 1 : options.fillOpacity;
ctx.fillStyle = options.fillColor || options.color;
ctx.fill(options.fillRule || 'evenodd');
Expand Down

0 comments on commit 4b2065f

Please sign in to comment.