-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
35 lines (30 loc) · 1.28 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Geocoder</title>
<link rel="shortcut icon" href="data:image/x-icon;" type="image/x-icon">
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<link href='https://api.mapbox.com/mapbox-gl-js/v2.3.1/mapbox-gl.css' rel='stylesheet' />
</head>
<body>
<h1>Geocoder</h1>
<!-- form to insert the location -->
<form id="search-locations" class="form-inline justify-content-center mt-5">
<input type="text" id="location" name="location" placeholder="Type a location" class="mr-sm-2 py-1 pl-3">
<button class="btn btn-light py-1 font-weight-bold" type="submit">Geocode!</button>
</form>
<div class="d-flex flex-column align-items-center mt-5">
<!-- div to append the gps coordinates -->
<div id="gps-coordinates"></div>
<!-- div to insert the map -->
<div id='map' style='width: 800px; height: 300px;'></div>
</div>
<script type='text/javascript' src='config.js'></script>
<script src="main.js"></script>
</body>
</html>