Skip to content

Commit

Permalink
fix: eew circle color
Browse files Browse the repository at this point in the history
  • Loading branch information
cstrikeasia committed Aug 6, 2024
1 parent e00783e commit fdc17b3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/js/eew.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ function show_eew(data) {
: L.gradientCircle([data.eq.lat, data.eq.lon], {
radius: s_dist,
gradientColors: data.status
? ["rgba(255, 0, 0, 0)", "rgba(255, 0, 0, 0.6)"]
: ["rgba(255, 146, 36, 0)", "rgba(255, 146, 36, 0.6)"],
? ["rgba(255, 0, 0, 0)", "rgba(255, 0, 0, 0.1)"]
: ["rgba(255, 146, 36, 0)", "rgba(255, 146, 36, 0.1)"],
pane: "circlePane",
}).addTo(variable.map),
},
Expand Down Expand Up @@ -372,8 +372,8 @@ function show_eew(data) {
{
radius: s_dist,
gradientColors: data.status
? ["rgba(255, 0, 0, 0)", "rgba(255, 0, 0, 0.6)"]
: ["rgba(255, 146, 36, 0)", "rgba(255, 146, 36, 0.6)"],
? ["rgba(255, 0, 0, 0)", "rgba(255, 0, 0, 0.1)"]
: ["rgba(255, 146, 36, 0)", "rgba(255, 146, 36, 0.1)"],
pane: "circlePane",
}
).addTo(variable.map);
Expand Down Expand Up @@ -416,8 +416,8 @@ function show_eew(data) {
{
radius: s_dist,
gradientColors: data.status
? ["rgba(255, 0, 0, 0)", "rgba(255, 0, 0, 0.6)"]
: ["rgba(255, 146, 36, 0)", "rgba(255, 146, 36, 0.6)"],
? ["rgba(255, 0, 0, 0)", "rgba(255, 0, 0, 0.1)"]
: ["rgba(255, 146, 36, 0)", "rgba(255, 146, 36, 0.1)"],
pane: "circlePane",
}
).addTo(variable.map);
Expand Down

0 comments on commit fdc17b3

Please sign in to comment.