Skip to content

Commit

Permalink
fix(style): add circle style support.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchoqueux committed Sep 10, 2019
1 parent c1ffcb3 commit b80ab06
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Core/Style.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ class Style {
this.point.color = color;
this.point.opacity = opacity;
this.point.radius = 1.5;
} else if (layer.type === 'circle') {
const { color, opacity } = rgba2rgb(layer.paint['circle-color']);
this.point.color = color;
this.point.opacity = opacity;
this.point.radius = layer.paint['circle-radius'];
}
return this;
}
Expand Down

0 comments on commit b80ab06

Please sign in to comment.