-
Notifications
You must be signed in to change notification settings - Fork 1
/
mapui.html
64 lines (58 loc) · 2.26 KB
/
mapui.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
crossorigin="" />
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-gZwIG9x3wUXg2hdXF6+rVkLF/0Vi9U8D2Ntg4Ga5I5BZpVkVxlJWbSQtXPSiUTtC0TjtGOmxa1AJPuV0CPthew=="
crossorigin=""></script>
<style>
.map {
height: 800px;
width: 100%;
}
</style>
<script src="https://unpkg.com/[email protected]/dist/stam.min.js"></script>
</head>
<body>
<div id="map" class="map"></div>
<script>
var map2 = L.map('map', {
preferCanvas: true
}).setView([50.27264, 7.26469], 8);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map2);
L.stam({
//baseUrl: "https://airquality-frost.docker01.ilt-dmz.iosb.fraunhofer.de/v1.1",
//baseUrl: "https://sensorthings.brgm-rec.fr/SensorThingsGroundWater/v1.0",
//baseUrl: "https://service.datacove.eu/DemographyThings/v1.1",
//baseUrl: "https://service.datacove.eu/HydroThings/v1.1",
baseUrl: "https://airquality-frost.k8s.ilt-dmz.iosb.fraunhofer.de/v1.1",
markerStyle: function (feature) {
return "yellow";
},
markerClick: (marker) => {
console.log(marker);
setTimeout(() => {
marker.properties.closeMarker();
}, 1000);
var s = "";
for(var i =0;i<2000;i++) s += "HI\n";
return s;
},
cluster: true,
// cachingDuration: 10,
clusterMin: 5,
queryObject: {
entityType: 'Things'
}
}).addTo(map2);
</script>
</body>
</html>