-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGIS.html
95 lines (92 loc) · 2.31 KB
/
GIS.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!doctype HTML>
<HTML>
<head>
<script src="https://api.mapbox.com/mapbox-gl-js/v1.6.1/mapbox-gl.js"></script>
<link href="https://api.mapbox.com/mapbox-gl-js/v1.6.1/mapbox-gl.css" rel="stylesheet" />
</head>
<style>
/* the following code is adapted from: https://www.w3schools.com/cssref/tryit.asp?filename=trycss_border */
#headingbox {
width: 500px;
height: 100px;
border: 5px solid green;
background-color:green;
position:relative; top:40px;
}
/* end of adaptation */
/* the following code is adapted from: https://www.w3schools.com/cssref/css3_pr_box-shadow.asp */
#mainbox {
border: 5px solid black;
padding: 5px;
box-shadow: 5px 10px grey;
position:relative; top:50px;
}
/* end of adaptation */
H1 {
font-size: 30px;
text-align: center;
}
H2 {
font-size: 30px;
}
p {
font-size: 20px;
}
a {
font-size: 30px;
}
/* the following code is adapted from: https://www.w3schools.com/css/tryit.asp?filename=trycss_navbar_horizontal_black */
ul {
list-style-type: none;
margin: 0;
padding: 0;
background-color: grey;
position: fixed;
top: 0;
width: 100%;
font-family:courier;
}
li {
float: left;
}
li a {
display: block;
color: black;
text-align: center;
padding:0px 10px;
text-decoration: none;
}
li a:hover {
background-color: red;
}
/* end of adaptation */
</style>
<TITLE> Simon's Woodhouse Ridge Map</TITLE>
<body>
<ul>
<li><a href="/">Homepage</a></li>
<li><a href="/Model.html">Model</a></li>
<li><a href="/agentframework.html">Agentframework</a></li>
<li><a href="/aboutme.html">About Me</a></li>
</ul>
<div id="headingbox">
<h1 style="font-family:verdana;">Woodhouse Ridge Action Group</h1>
</div>
<div id="mainbox">
<p style="font-family:verdana;"><br>Welcome to our Map<br>
This webpage will be updated over time as more Action Days are completed, and Simon works out what he is doing.
<div id="mapid" style="width: 600px; height: 400px;"></div>
<script>
mapboxgl.accessToken = 'pk.eyJ1Ijoic2ltb25sMTEiLCJhIjoiY2s1dHBxejRiMHBpcjNrbnd4Z3R6eWhjcyJ9.lFOgWPzWjq91hQTg6acmkg';
var map = new mapboxgl.Map({
container: 'map', // container id
style: 'mapbox://styles/simonl11/ck5tq2qw11a3y1ito2pjk7086', //hosted style id
center: [-51.3, 4], // starting position [lng, lat]
zoom: 9 // starting zoom
});
</script>
<br></p>
</div>
<br>
</body>
</HTML>