-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (46 loc) · 1.51 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Mapbox GL Fontawesome Markers Demo</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<link href="https://api.mapbox.com/mapbox-gl-js/v2.11.0/mapbox-gl.css" rel="stylesheet">
<script src="https://api.mapbox.com/mapbox-gl-js/v2.11.0/mapbox-gl.js"></script>
<script src='https://unpkg.com/@turf/turf@6/turf.min.js'></script>
<style>
body {
margin: 0;
padding: 0;
}
#map {
position: absolute;
top: 0;
bottom: 0;
width: 100%;
}
#content {
position: absolute;
top: 15px;
left: 15px;
background-color: white;
font-family: sans-serif;
padding: 10px;
}
.small {
font-size: 14px;
}
</style>
</head>
<body>
<div id="map"></div>
<div id="content">
<div>Mapbox GL Fontawesome Markers Demo</div>
<div><a href="https://github.com/chriswhong/mapbox-gl-fontawesome-markers">Github Repo</a></div>
<span class="small">Reload to regenerate markers</span>
</div>
<script src="https://kit.fontawesome.com/3a3d8feff0.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/mapbox-gl-fontawesome-markers@0.0.1/dist/index.js"
crossorigin="anonymous"></script>
<script src="example/common/map-with-markers.js"></script>
</body>
</html>