-
Notifications
You must be signed in to change notification settings - Fork 1
/
viewMap.html
65 lines (56 loc) · 2.16 KB
/
viewMap.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" content="user-scalable=no">
<title>View Map</title>
<link rel="icon" href="images/house.png">
<!-- css for loading icon -->
<style>
.lds-dual-ring {
display: inline-block;
width: 80px;
height: 80px;
}
.lds-dual-ring:after {
content: " ";
display: block;
width: 64px;
height: 64px;
margin: 8px;
border-radius: 50%;
border: 6px solid #000000;
border-color: #180eab transparent #a70303 transparent;
animation: lds-dual-ring 1.2s linear infinite;
}
#load {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
@keyframes lds-dual-ring {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>
</head>
<body>
<p id = "map-info" style="text-align: center; font-family: Verdana; font-size: 12px; line-height: 25px; position: absolute; top: 25%; left: 50%; transform: translate(-50%, -50%)">
Please allow up to 15 seconds for the map to load <br>
<strong>How to use:</strong> <br>
- Clusters show the average price of a house in the approximate area <br>
- Zoom in to see house sale information <br>
- Input an address in the searchbar to see sale data for a particular house, if available
</p>
<div class="lds-dual-ring" id="load"></div>
<div id="map" style="width: 100%; min-height: 97vh; display: none;"></div>
<input id="pac-input" class="controls" type="text" placeholder="Find an address" style="display: none;font-size: 20px;width: 40%;height: 34px;margin-top: 8px;margin-left: 5px;">
<script src="https://cdn.jsdelivr.net/gh/mholt/PapaParse@master/papaparse.min.js"></script>
<script src="https://unpkg.com/@google/[email protected]/dist/markerclustererplus.min.js"></script>
<script type="module" src="javascript/mapScript.js"></script>
</body>
</html>