-
Notifications
You must be signed in to change notification settings - Fork 2
/
openlayers.html
74 lines (69 loc) · 2.65 KB
/
openlayers.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
70
71
72
73
74
<!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://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.3.1/css/ol.css" type="text/css">
<style>
.map {
height: 800px;
width: 100%;
}
</style>
<script src="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.3.1/build/ol.js"></script>
<script src="https://unpkg.com/sta-map"></script>
</head>
<body>
<h1>BGS Sensor Data (beta)</h1>
<br>
<p>A OpenLayers 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> -->
<div id="mapOl" class="map"></div>
<script>
var map = new ol.Map({
renderers: ['Canvas', 'VML'],
layers: [
new ol.layer.Tile({
source: new ol.source.OSM(),
}),
],
target: 'mapOl',
view: new ol.View({
center: [-467517.49, 7526534.35],
zoom: 16,
}),
});
map.addLayer(new ol.layer.STAM({
map,
//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",
}
}
]
}));
</script>
</body>
</html>