Skip to content

Commit

Permalink
update the opacity and colors
Browse files Browse the repository at this point in the history
  • Loading branch information
JodeeHarris committed Oct 18, 2023
1 parent 079fb4a commit 2ea9349
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Starter_Code/static/js/logic.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
url = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojson"
depth = function(d){
if (d >= 90) {
return "red"}
return "maroon"}
else if (d>=70){
return "green"
return "red"
}
else if (d>=50){
return "orange"
Expand All @@ -12,7 +12,7 @@ depth = function(d){
return "yellow"
}
else {
return "blue"
return "lime"
}
}
d3.json(url).then(function(eqData){
Expand All @@ -30,7 +30,7 @@ d3.json(url).then(function(eqData){
color: depth(feature.geometry.coordinates[2]),
fillColor: depth(feature.geometry.coordinates[2]),
opacity: 1,
fillOpacity: .7,
fillOpacity: .3,
radius: feature.properties.mag * 10
})
},
Expand Down

0 comments on commit 2ea9349

Please sign in to comment.