forked from vahaduo/vahaduo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
map.html
54 lines (52 loc) · 1.59 KB
/
map.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
<!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" />
<link rel="stylesheet" type="text/css" href="src\LeafletJS\leaflet.css" />
<script src="src\LeafletJS\leaflet.js"></script>
<!-- Mapping library-->
<script src="src\countries.js"></script>
<!-- Countries Polygons Downloaded from https://datahub.io/core/geo-countries instead of having to deal with any geography API-->
<script src="src\d3.js"></script>
<!-- d3 to check if the polygon contains a specefic coordination -->
<script src="src\Countries And Adjectivals.js"></script>
<!-- Countries and their respective Adjectivals, created a tool to scrap it from wikipedia-->
<title>Genetic Map</title>
<style>
html,
body {
height: 95%;
background-color: #555;
}
#map {
height: 90%;
width: 80%;
margin-top: 0px;
margin-bottom: 0px;
}
nav {
background-color: #dadada;
padding-left: 5%;
padding-top: 0.5%;
padding-bottom: 0.5%;
font-weight: 700;
margin: 0px;
color: #555;
}
</style>
</head>
<body>
<nav>
Latitude: <span id="lat"></span><br />
Longitude: <span id="lng"></span><br />
Country: <span id="ctr"></span><br />
Genetic distance to target: <span id="distance"></span><br />
</nav>
<map>
<div id="map"></div>
</map>
<script src="map.js"></script>
</body>
</html>