Skip to content

Commit

Permalink
add feb data
Browse files Browse the repository at this point in the history
  • Loading branch information
caimeng2 committed Feb 16, 2023
1 parent ae38fc4 commit 90ce400
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 21 deletions.
1 change: 1 addition & 0 deletions assets/data/data202302.js

Large diffs are not rendered by default.

46 changes: 25 additions & 21 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,28 +136,32 @@ <h2 class="text-white mb-5">Where are the smart cities?</h2>
var group12 = L.geoJSON(json12, optionsObject);
$.getJSON("./assets/data/data202301.js", function(json13){
var group13 = L.geoJSON(json13, 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";
var multiLayers = L.layerGroup([group1,group2,group3,group4,group5,group6,group7,group8,group9,group10,group11,group12,group13]);
var sliderControl1 = L.control.sliderControl({
layer: multiLayers,
alwaysShowDate: true,
showAllPopups: false,
showPopups: false
$.getJSON("./assets/data/data202302.js", function(json14){
var group14 = L.geoJSON(json14, 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";
var multiLayers = L.layerGroup([group1,group2,group3,group4,group5,group6,group7,group8,group9,group10,group11,group12,group13,group14]);
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 90ce400

Please sign in to comment.