-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
92 lines (78 loc) · 3.34 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html>
<head>
<!-- Library Leaflet -->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin=""/>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js" integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script>
<!-- Extension Context Menu -->
<link rel="stylesheet" href="plugins/leaflet.contextmenu.css" />
<script src="plugins/leaflet.contextmenu.js"></script>
<!-- Leaflet Routing Machine -->
<!--<link rel="stylesheet" href="leafletroutingmachine/leaflet-routing-machine.css" />
<script src="leafletroutingmachine/leaflet-routing-machine.js"></script>
<script src="leafletroutingmachine/lrm-graphhopper.js"></script>-->
<!-- Leaflet Search -->
<link rel="stylesheet" href="plugins/Control.Geocoder.css" />
<script src="plugins/Control.Geocoder.js"></script>
<!-- Leaflet Marker Cluster -->
<link rel="stylesheet" href="plugins/MarkerCluster.css" />
<link rel="stylesheet" href="plugins/MarkerCluster.Default.css" />
<script src="plugins/leaflet.markercluster.js"></script>
<!-- Leaflet Geolocate -->
<link rel="stylesheet" href="plugins/L.Control.Locate.min.css" />
<script src="plugins/L.Control.Locate.min.js"></script>
<!-- Leaflet Control Window -->
<script src="plugins/L.Control.Window.js"></script>
<link rel="stylesheet" href="plugins/L.Control.Window.css" />
<script src="gpx-helper.js"></script>
<title>Trail Webmap</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body { margin:0; padding:0; }
#map { position: absolute; top:0; bottom:0; right:0; left:0; }
.info-container {
background-color: white;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}
.custom-control-container {
padding: 5px;
border-radius: 5px;
}
.custom-control-button {
background-color: #007bff;
color: white;
border: none;
padding: 5px 10px;
cursor: pointer;
border-radius: 3px;
display: block;
margin-bottom: 7px;
}
.custom-control-button:hover {
background-color: #0056b3;
}
.custom-control-button2 {
background-color: #6800f0;
color: white;
border: none;
padding: 5px 10px;
cursor: pointer;
border-radius: 3px;
display: block;
margin-bottom: 7px;
}
.custom-control-button2:hover {
background-color: #4e00b3;
}
</style>
</head>
<body>
<div id="map"></div>
<input type="file" id="gpx-input" accept=".gpx" style="display: none;" />
<input type="file" id="project-input" accept=".twp" style="display: none;" />
<script src="map-script.js"></script>
</body>
</html>