-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
56 lines (49 loc) · 1.55 KB
/
index.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
<!doctype html>
<html lang="en">
<head>
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.1.1/css/ol.css"
type="text/css">
<style>
body, html {
height: 100%;
margin: 0;
}
.map {
height: calc(100% - 40px);
width: 100%;
background-color: #e4e2de;
}
.controls {
height: 40px;
width: 100%;
}
</style>
<script src="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.1.1/build/ol.js"></script>
<script src="minerva-basic.js"></script>
<title>Minerva example</title>
</head>
<body>
<div class="controls">
<label for="serverUrl">Server url:</label>
<input id="serverUrl" value="https://pdmap.uni.lu/minerva/" disabled/>
<label for="projectId">Project id:</label>
<select id="projectId" disabled>
<option value="pd_map_autumn_19">pd_map_autumn_19</option>
</select>
<label for="submapId">Submap:</label>
<select id="submapId" disabled>
<option value="4895">PD_190925_1</option>
</select>
</div>
<div id="map" class="map"></div>
<script type="text/javascript">
let elementId = "map";
let serverUrl = document.getElementById('serverUrl').value;
let selectProject = document.getElementById("projectId");
let projectId = selectProject.options[selectProject.selectedIndex].value;
let submapId = 4895;
createMap({elementId, serverUrl, projectId, submapId});
</script>
</body>
</html>