-
Notifications
You must be signed in to change notification settings - Fork 2
/
leaflet.html
69 lines (63 loc) · 2.7 KB
/
leaflet.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
65
66
67
68
69
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BGS Sensors</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/sta-map"></script>
</head>
<body>
<h1>BGS Sensor Data (beta)</h1>
<br>
<p>A Leaflet map Based on <a href="https://github.com/DataCoveEU/STAM">DataCove EU STAM project</a> connected to the <a href="https://sensors.bgs.ac.uk/FROST-Server/v1.1">BGS SensorThings API endpoint</a>.</p>
<br>
<p><a href="https://www.ogc.org/standards/sensorthings">SensorThings API</a> is a international standard developed by the OGC using RESTful OData interface. Users can connect to the API using Python, Jupyter Notebooks, QGIS, ESRI and other clients</p>
<br>
<div id="map" class="map"></div>
<script>
var map2 = L.map('map', {
preferCanvas: true
}).setView([55.83836, -4.19961], 16);
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://sensors.bgs.ac.uk/FROST-Server/v1.1",
markerStyle: function (feature) {
return "yellow";
},
cluster: false,
// cachingDuration: 10,
clusterMin: 5,
queryObject: [{
zoomLevel: {
from: 0,
to: 18
},
query: {
entityType: 'Things',
filter: "length(Locations/name) gt 4",
}
}
]
}).addTo(map2);
</script>
</body>
</html>