Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonands committed Mar 25, 2024
1 parent 70d8b4d commit 8a46917
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5001
}
17 changes: 8 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,24 @@
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossorigin="" />

<!-- Leaflet JS -->
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
crossorigin=""></script>

<!-- Our CSS -->
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>

<body>

<!-- The div that holds our map -->
<!-- MAP -->
<div id="map"></div>

<!-- Leaflet JS -->
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
crossorigin=""></script>
<!-- D3 JavaScript -->
<script src="https://d3js.org/d3.v7.min.js"></script>
<!-- Our JavaScript -->

<!-- JavaScript files -->
<script type="text/javascript" src="js/logic.js"></script>
<!--chroma-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/chroma-js/2.1.0/chroma.min.js"></script>
</body>

</html>
7 changes: 0 additions & 7 deletions js/logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,7 @@ let myMap = L.map("map", {
// coordinates
coords = []
d3.json(url).then(function(data){
console.log(data)
// console.log(data.features[0].geometry.coordinates)
// data.features.forEach((element) => console.log([element.geometry.coordinates[0], element.geometry.coordinates[1]]))

// color scale function (value = data.features[0].coordinates[2])
function getColor(value) {
// for (let i = 0; i < value; i++){
// let color = "";
if (value > 90){
color = "#FF0000";
return color;
Expand Down

0 comments on commit 8a46917

Please sign in to comment.