-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmapbox_maps_api.html
More file actions
81 lines (70 loc) · 2.77 KB
/
mapbox_maps_api.html
File metadata and controls
81 lines (70 loc) · 2.77 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>First Mapbox Map</title>
<!-- Mapbox CSS -->
<link href='https://api.mapbox.com/mapbox-gl-js/v2.0.0/mapbox-gl.css' rel='stylesheet' />
<!-- Custom CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
<style>
#map {
/* the width and height may be set to any size */
width: 100%;
height: 500px;
}
.codeup-popup .mapboxgl-popup-content {
background: #77AF00;
}
.codeup-popup .mapboxgl-popup-tip {
border-top-color: #77AF00;
}
</style>
</head>
<body>
<div class="container">
<h1>My First Mapbox Map!</h1>
</div>
<div class="container">
<div class="row my-3">
<div class="col">
<button type="button" class="btn btn-primary w-100" id="search-button">Search Again</button>
</div>
<div class="col">
<button type="button" class="btn btn-primary w-100" id="reset-button">Reset</button>
</div>
<div class="col">
<select class="form-select" id="zoom-select">
<option selected disabled>Zoom Level</option>
<option value="5">Zoom Level 5</option>
<option value="10">Zoom Level 10</option>
<option value="15">Zoom Level 15</option>
<option value="20">Zoom Level 20</option>
</select>
</div>
<div class="col">
<select class="form-select" id="style-select">
<option selected disabled>Map Style</option>
<option value="streets-v11">Street</option>
<option value="dark-v10">Dark</option>
<option value="satellite-v9">Satellite</option>
</select>
</div>
</div>
</div>
<!-- The HTML element that serves as the Mapbox container -->
<div id='map'></div>
<!-- Mapbox JS -->
<script src='https://api.mapbox.com/mapbox-gl-js/v2.0.0/mapbox-gl.js'></script>
<script src="js/keys.js"></script>
<script src="js/mapbox-geocoder-utils.js"></script>
<!-- Custom JS -->
<script src="js/mapbox_maps_api.js"></script>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW" crossorigin="anonymous"></script>
</body>
</html></title>
</head>
<body>
</body>
</html>