-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprojektkarte.html
56 lines (47 loc) · 1.98 KB
/
projektkarte.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="de">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"></script>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" />
<link href="css/viezkarte.css" rel="stylesheet" />
<style>
html, body {
height: 100%;
padding: 0;
margin: 0;
}
#map {
/* configure the size of the map */
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id="map"></div>
<script>
var digital_viez = L.icon({
iconUrl: 'assets/map-icons/projekt-icon.png',
iconSize: [50, 50],
iconAnchor: [25, 25],
popupAnchor: [5, -20],
});
var uni_trier = L.marker({lon: 6.6866,lat: 49.7474}, {icon: digital_viez}).bindPopup('<p><b>Universität Trier</b></br>Standort des Digital Viez Projekts.<br><a href="mailto:digital-viez@uni-trier.de" target="blank"><img src= "assets/bootstrap-icons/envelope-fill.svg" alt = "E-Mail" height = "12px" width = "auto"> digital-viez@uni-trier.de</a></p>')
var standard = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {id: 'MapID', attribution: '© <a href="https://openstreetmap.org/copyright">OpenStreetMap contributors</a>'});
var opnv = L.tileLayer('http://{s}.tile.memomaps.de/tilegen/{z}/{x}/{y}.png', {id: 'MapID2', attribution: '© <a href="https://openstreetmap.org/copyright">OpenStreetMap contributors</a>'});
var organisationen = L.layerGroup([uni_trier]);
var map = L.map('map', {
layers: [standard, organisationen]
}).setView({lon: 6.63935, lat: 49.75565}, 10);
var standardMaps = {
"Standard": standard,
"ÖPNV": opnv,
};
L.control.layers(standardMaps).addTo(map);
// show the scale bar on the lower left corner
L.control.scale({imperial: true, metric: true}).addTo(map);
</script>
</body>
</html>