Skip to content

Commit

Permalink
Dec data
Browse files Browse the repository at this point in the history
  • Loading branch information
caimeng2 committed Dec 8, 2023
1 parent d785de1 commit bc6255c
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 33 deletions.
1 change: 1 addition & 0 deletions assets/data/data202312.js

Large diffs are not rendered by default.

70 changes: 37 additions & 33 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,39 +156,43 @@ <h2 class="text-white mb-5">Where are the smart cities?</h2>
var group22 = L.geoJSON(json22, optionsObject);
$.getJSON("./assets/data/data202311.js", function(json23){
var group23 = L.geoJSON(json23, optionsObject);
group1.options.time = "2022.01";
group2.options.time = "2022.02";
group3.options.time = "2022.03";
group4.options.time = "2022.04";
group5.options.time = "2022.05";
group6.options.time = "2022.06";
group7.options.time = "2022.07";
group8.options.time = "2022.08";
group9.options.time = "2022.09";
group10.options.time = "2022.10";
group11.options.time = "2022.11";
group12.options.time = "2022.12";
group13.options.time = "2023.01";
group14.options.time = "2023.02";
group15.options.time = "2023.03";
group16.options.time = "2023.04";
group17.options.time = "2023.05";
group18.options.time = "2023.06";
group19.options.time = "2023.07";
group20.options.time = "2023.08";
group21.options.time = "2023.09";
group22.options.time = "2023.10";
group23.options.time = "2023.11";
var multiLayers = L.layerGroup([group23,group22,group21,group20,group19,group18,group17,group16,group15,group14,group13,group12,group11,group10,group9,group8,group7,group6,group5,group4,group3,group2,group1]);
var sliderControl1 = L.control.sliderControl({
layer: multiLayers,
alwaysShowDate: true,
showAllPopups: false,
showPopups: false
});
map.addControl(sliderControl1);
sliderControl1.startSlider();
});
$.getJSON("./assets/data/data202312.js", function(json24){
var group24 = L.geoJSON(json24, optionsObject);
group1.options.time = "2022.01";
group2.options.time = "2022.02";
group3.options.time = "2022.03";
group4.options.time = "2022.04";
group5.options.time = "2022.05";
group6.options.time = "2022.06";
group7.options.time = "2022.07";
group8.options.time = "2022.08";
group9.options.time = "2022.09";
group10.options.time = "2022.10";
group11.options.time = "2022.11";
group12.options.time = "2022.12";
group13.options.time = "2023.01";
group14.options.time = "2023.02";
group15.options.time = "2023.03";
group16.options.time = "2023.04";
group17.options.time = "2023.05";
group18.options.time = "2023.06";
group19.options.time = "2023.07";
group20.options.time = "2023.08";
group21.options.time = "2023.09";
group22.options.time = "2023.10";
group23.options.time = "2023.11";
group24.options.time = "2023.12";
var multiLayers = L.layerGroup([group24,group23,group22,group21,group20,group19,group18,group17,group16,group15,group14,group13,group12,group11,group10,group9,group8,group7,group6,group5,group4,group3,group2,group1]);
var sliderControl1 = L.control.sliderControl({
layer: multiLayers,
alwaysShowDate: true,
showAllPopups: false,
showPopups: false
});
map.addControl(sliderControl1);
sliderControl1.startSlider();
});
});
});
});
});
Expand Down

0 comments on commit bc6255c

Please sign in to comment.