Skip to content

Commit

Permalink
Merge pull request #33 from goat-community/feature/style
Browse files Browse the repository at this point in the history
fix: opacity
  • Loading branch information
majkshkurti authored Jan 23, 2024
2 parents f242b8e + a9983cd commit 4ee75d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/lib/transformers/layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function transformToMapboxLayerStyleSpec(data: ProjectLayer) {
type: "circle",
paint: {
"circle-color": getMapboxStyleColor(data, "color"),
"circle-opacity": pointProperties.opacity,
"circle-opacity": pointProperties.filled ? pointProperties.opacity : 0,
"circle-radius": pointProperties.radius || 5,
"circle-stroke-color": getMapboxStyleColor(data, "stroke_color"),
"circle-stroke-width": pointProperties.stroked
Expand All @@ -61,7 +61,7 @@ export function transformToMapboxLayerStyleSpec(data: ProjectLayer) {
type: "fill",
paint: {
"fill-color": getMapboxStyleColor(data, "color"),
"fill-opacity": polygonProperties.opacity,
"fill-opacity": polygonProperties.filled ? polygonProperties.opacity : 0,
"fill-outline-color": getMapboxStyleColor(data, "stroke_color"),
"fill-antialias": polygonProperties.stroked,
},
Expand Down

0 comments on commit 4ee75d9

Please sign in to comment.