forked from HackerUSA-CE/JS-Making-an-Interactive-Map
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
45 lines (45 loc) · 1.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Geolocation Project</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin=""/>
<script src="app.js" defer></script>
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
crossorigin=""></script>
<style>
#map {
height: 400px;
background-color: #ccc;
}
#map::before{
content: 'LOADING';
font-size: 3em;
text-align: center;
width: 100%;
position: absolute;
margin-top: 3em;
}
.leaflet-popup-content-wrapper {
width: 100%;
}
</style>
</head>
<body>
<form>
<select id="business">
<option value="restaurant">Restaurants</option>
<option value="coffee">Coffee Shops</option>
<option value="hotel">Hotels</option>
<option value="market">Markets</option>
</select>
<button id="submit">Submit</button>
</form>
<div id="map"></div>
</body>
</html>