-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
31 lines (25 loc) · 811 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Boston Real Time Bus Tracker</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
<script src='https://api.mapbox.com/mapbox-gl-js/v2.8.2/mapbox-gl.js'></script>
<link href='https://api.mapbox.com/mapbox-gl-js/v2.8.2/mapbox-gl.css' rel='stylesheet' />
<link href="./styles.css" rel="stylesheet" />
<script src="./mapanimation.js" rel="script"></script>
</head>
<body>
<div id="map"></div>
<script>
mapboxgl.accessToken = 'pk.eyJ1IjoidGluYWJlYXI4MTciLCJhIjoiY2w0cmdubTVqMDBkbTNjbzYwM3BweWM0NCJ9.XUvgOfjfpDXHjuVgU0IXpA'
let markers = [];
var map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/mapbox/streets-v11',
center: [-71.104081, 42.365554],
zoom: 12
});
</script>
</body>
</html>