Skip to content

Commit

Permalink
updates timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicschweizer committed May 12, 2023
1 parent d434717 commit 1ffc50d
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions prototype-1/main.js
Expand Up @@ -6,22 +6,32 @@ L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", {
}).addTo(map);
let polygon1;
let polygon2;

let popUp;
let T = 1500;
let event;
setTimeout(() => {
popUp = L.popup()
.setLatLng([46.94863, 7.45164])
.setContent("AUSBRUCH Gaswolke")
.openOn(map);
}, T);
setTimeout(() => {
polygon1 = L.polygon([
[46.94863, 7.45164],
[46.94587, 7.44254],
[46.94387, 7.44554],
]).addTo(map);
}, 1000);
}, T + 1000);
setTimeout(() => {
popUp = L.popup()
.setLatLng([46.94587, 7.44254])
.setContent("IN EINER STUNDE \nPerson über 75 Jahre")
.openOn(map);
}, T + 1000);
setTimeout(() => {
polygon2 = L.polygon([
[46.94863, 7.45164],
[46.92987, 7.41154],
[46.92287, 7.42654],
]).addTo(map);
}, 2000);
var popup = L.popup()
.setLatLng([46.94587, 7.44254])
.setContent("IN EINER STUNDE \nPerson über 75 Jahre")
.openOn(map);
}, T + 2000);

0 comments on commit 1ffc50d

Please sign in to comment.