-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex_ueb_webmap2.html
43 lines (37 loc) · 1.53 KB
/
index_ueb_webmap2.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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de-de">
<head>
<title>Webmap Übung 2 - Map Styling</title>
<meta charset="UTF-8">
<meta http-equiv="content-script-type" content="text/javascript" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="en" />
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<link rel="stylesheet" type="text/css" href="map.css"></link>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<script src='https://api.mapbox.com/mapbox-gl-js/v0.34.0/mapbox-gl.js'></script>
<script src='https://api.mapbox.com/mapbox.js/v3.0.1/mapbox.js'></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="JS/config.js"></script>
<script type="text/javascript" src="JS/staticMapElements.js"></script>
</head>
<body>
<p>Webmap Übung 2 - Map Styling</p>
<div id="geoMap"></div>
<script>
var map = L.map('geoMap', {
center: [47.22320, 8.81744],
zoom: 17,
layers: [mapboxSatellite, mapboxStreets]
});
marker.bindPopup("<b>Fäschtinseli</b>");
polygon.bindPopup("<b>Gebäude 8</b>");
circle.bindPopup("<b>Heilig Hüsli</b>");
var mapElements = L.layerGroup([marker, polygon, circle]).addTo(map);
var overlayMaps = {
"Map elements": mapElements
};
L.control.layers(baseMaps, overlayMaps).addTo(map);
</script>
</body>
</html>