Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
fix(circle): Renders stroke instead of two fills (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibesora authored Aug 11, 2022
1 parent 59924fa commit c729a48
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/symbolizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -532,10 +532,11 @@ export class CircleSymbolizer implements LabelSymbolizer, PaintSymbolizer {
let radius = this.radius.get(z, f);
let width = this.width.get(z, f);
if (width > 0) {
ctx.fillStyle = this.stroke.get(z, f);
ctx.strokeStyle = this.stroke.get(z, f);
ctx.lineWidth = width;
ctx.beginPath();
ctx.arc(geom[0][0].x, geom[0][0].y, radius + width, 0, 2 * Math.PI);
ctx.fill();
ctx.arc(geom[0][0].x, geom[0][0].y, radius + width / 2, 0, 2 * Math.PI);
ctx.stroke();
}

ctx.fillStyle = this.fill.get(z, f);
Expand Down

0 comments on commit c729a48

Please sign in to comment.