Skip to content

Commit

Permalink
init repo
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicschweizer committed May 12, 2023
0 parents commit d434717
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
@@ -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.
23 changes: 23 additions & 0 deletions prototype-1/index.html
@@ -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>
27 changes: 27 additions & 0 deletions prototype-1/main.js
@@ -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:
'&copy; <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);
6 changes: 6 additions & 0 deletions prototype-1/styles.css
@@ -0,0 +1,6 @@
#container {
border: 1px solid black;
}
#map {
height: 1080px;
}

0 comments on commit d434717

Please sign in to comment.