Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit d434717
Showing
4 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Analyse von Raumdaten für Schutz & Rettung | ||
|
||
## Teilnehmer | ||
|
||
- Patrizia | ||
- Simon | ||
- Mätthu | ||
- Housi | ||
- Domi | ||
|
||
## Ziel | ||
|
||
- Räumliche Daten auswerten. Gegeben ist eine Wolke welche einen Raum abdeckt(Polygon): Der Nutzer soll darüber informiert werden welche Regeln und Points of Interest ausgelöst werden. | ||
- Regeln: Regel basierend auf verschiedenen Attributen der darinliegenden Gebäude | ||
- Simulation Prognose: Verschiedene Gebiete mit Zeitachse darstellen. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<head> | ||
<link | ||
rel="stylesheet" | ||
href="https://unpkg.com/leaflet@1.9.3/dist/leaflet.css" | ||
integrity="sha256-kLaT2GOSpHechhsozzB+flnD+zUyjE2LlfWPgU04xyI=" | ||
crossorigin="" | ||
/> | ||
<!-- Make sure you put this AFTER Leaflet's CSS --> | ||
<script | ||
src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js" | ||
integrity="sha256-WBkoXOwTeyKclOHuWtc+i2uENFpDZ9YPdf5Hf+D7ewM=" | ||
crossorigin="" | ||
></script> | ||
<script defer src="main.js"></script> | ||
<link rel="stylesheet" href="styles.css" /> | ||
<body> | ||
<h1>Prototype Schutz und Rettung: Daten retten Leben</h1> | ||
<div id="container"> | ||
<div id="map"></div> | ||
</div> | ||
</body> | ||
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
var map = L.map("map").setView([46.94863, 7.45164], 16); | ||
L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", { | ||
maxZoom: 19, | ||
attribution: | ||
'© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>', | ||
}).addTo(map); | ||
let polygon1; | ||
let polygon2; | ||
|
||
setTimeout(() => { | ||
polygon1 = L.polygon([ | ||
[46.94863, 7.45164], | ||
[46.94587, 7.44254], | ||
[46.94387, 7.44554], | ||
]).addTo(map); | ||
}, 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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#container { | ||
border: 1px solid black; | ||
} | ||
#map { | ||
height: 1080px; | ||
} |