Skip to content

Commit

Permalink
final updates
Browse files Browse the repository at this point in the history
  • Loading branch information
adityabagla7 committed Apr 6, 2024
1 parent e28a8af commit a4b849d
Show file tree
Hide file tree
Showing 40 changed files with 4,292 additions and 1,440 deletions.
31 changes: 15 additions & 16 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
}).addTo(map);
</script>
<script src="../temp-folder/newRoads.js"></script>
<script src="../temp-folder/roadds.js"></script>

<!-- Footer -->
<div class="footer">
Expand All @@ -80,24 +80,23 @@

</html>
<script>
var blueCount = 0; // Initialize count for blue color

L.geoJSON(RoadData, {
style: function(feature) {
var randomNumber = feature.properties.randomNumber;
var opacity = randomNumber * 0.1;
var color = 'blue';
if (randomNumber <= 3) {
color = 'blue';
blueCount++; // Increment count for blue color

} else if (randomNumber <= 6) {
color = 'blue';
blueCount++; // Increment count for blue color

} else {
blueCount++; // Increment count for blue color
}
var num = feature.properties.flood_intensity;
var opacity = num * 0.1;
var color;
if (num <= 1) color = '#0000FF';
else if (num <= 2) color = '#3281a8';
else if (num <= 3) color = '#326ba8';
else if (num <= 4) color = '#325da8';
else if (num <= 5) color = '#324ca8';
else if (num <= 6) color = '#3238a8';
else if (num <= 7) color = '#4232a8';
else if (num <= 8) color = '#1e0f7d';
else if (num <= 9) color = '#0f054a';
else color = '#0b0240';

return {
color: color,
opacity: opacity
Expand Down
2,848 changes: 1,424 additions & 1,424 deletions Rainfall.csv → temp-folder/Rainfall.csv

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions temp-folder/node_modules/.bin/csv-parser

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions temp-folder/node_modules/.bin/csv-parser.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions temp-folder/node_modules/.bin/csv-parser.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions temp-folder/node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions temp-folder/node_modules/csv-parser/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a4b849d

Please sign in to comment.