Skip to content

Commit

Permalink
Sept data
Browse files Browse the repository at this point in the history
  • Loading branch information
caimeng2 committed Sep 4, 2024
1 parent d9293f4 commit 9267cb2
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 40 deletions.
1 change: 1 addition & 0 deletions assets/data/data202409.js

Large diffs are not rendered by default.

84 changes: 44 additions & 40 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,47 +174,51 @@ <h2 class="text-white mb-5">Where are the smart cities?</h2>
var group31 = L.geoJSON(json31, optionsObject);
$.getJSON("./assets/data/data202408.js", function(json32){
var group32 = L.geoJSON(json32, 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";
group25.options.time = "2024.01";
group26.options.time = "2024.02";
group27.options.time = "2024.03";
group28.options.time = "2024.04";
group29.options.time = "2024.05";
group30.options.time = "2024.06";
group31.options.time = "2024.07";
group32.options.time = "2024.08";
var multiLayers = L.layerGroup([group32, group31, group30, group29, group28, group27, group26, group25, 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
$.getJSON("./assets/data/data202409.js", function(json33){
var group33 = L.geoJSON(json33, 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";
group25.options.time = "2024.01";
group26.options.time = "2024.02";
group27.options.time = "2024.03";
group28.options.time = "2024.04";
group29.options.time = "2024.05";
group30.options.time = "2024.06";
group31.options.time = "2024.07";
group32.options.time = "2024.08";
group33.options.time = "2024.09";
var multiLayers = L.layerGroup([group33, group32, group31, group30, group29, group28, group27, group26, group25, 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();
});
map.addControl(sliderControl1);
sliderControl1.startSlider();
});
});
});
Expand Down

0 comments on commit 9267cb2

Please sign in to comment.