-
Notifications
You must be signed in to change notification settings - Fork 0
/
mapview.html
executable file
·125 lines (110 loc) · 4.63 KB
/
mapview.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<html lang="en">
<head>
<title>Map View</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link href="css/starter-template.css" rel="stylesheet">
<style>
body {
padding: 0;
margin: 0;
}
html, body, #map {
height: 100%;
}
</style>
<style>
@font-face {
font-family: TokyoOneSolid;
src: url(fonts/Tokyo-OneSolid.otf);
}
.tokyocustomfont {
font-family: TokyoOneSolid;
font-size: 30px;
color: white;
}
</style>
<!-- not https!! so using local version of same file
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.5/leaflet.css" />
-->
<link rel="stylesheet" href="css/leaflet.css" />
</head>
<script>
</script>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top" style="background-color: #e50041;">
<div class="container" >
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="navbar-brand" href="#">
<p class="tokyocustomfont">SOUNDTRACKED</p>
</div>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><button id="openBtn" class="btn btn-primary btn-lg">Drop!</button></li>
<li><button id="openBtn" class="btn btn-primary btn-lg" onclick="ShowAllSongs()">Show All</button></li>
</ul>
</div>
</div>
</nav>
<div id="map">
</div>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">
<span aria-hidden="true">×</span>
<span class="sr-only">Close</span>
</button>
<h4 class="modal-title" id="myModalLabel">Modal title</h4>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" style="background-color: #f7a51b;" onclick="DropSelectedTrack('Rushing')" data-dismiss="modal">Rushing</button>
<button type="button" class="btn btn-primary" style="background-color: #bccb42;" onclick="DropSelectedTrack('Striding')" data-dismiss="modal">Striding</button>
<button type="button" class="btn btn-primary" style="background-color: #5fb25f;" onclick="DropSelectedTrack('Walking')" data-dismiss="modal">Walking</button>
<button type="button" class="btn btn-primary" style="background-color: #4cb6a8;" onclick="DropSelectedTrack('Strolling')" data-dismiss="modal">Strolling</button>
<button type="button" class="btn btn-primary" style="background-color: #0098a8;" onclick="DropSelectedTrack('Lounging')" data-dismiss="modal">Lounging</button>
</div>
</div>
</div>
</div>
<!-- not https!! so using local version of same file
<script src="http://cdn.leafletjs.com/leaflet-0.7.5/leaflet.js"></script>
-->
<script src="lib/leaflet.js"></script>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="modallist.js">
</script>
<script src="soundtracked.js">
</script>
<script>
var map = L.map('map').setView([40.74486725088441, -73.98499131202698], 17);
L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6IjZjNmRjNzk3ZmE2MTcwOTEwMGY0MzU3YjUzOWFmNWZhIn0.Y8bhBaUMqFiPrDRW9hieoQ', {
maxZoom: 18,
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
'<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ' +
'Imagery © <a href="http://mapbox.com">Mapbox</a>',
id: 'mapbox.streets'
}).addTo(map);
</script>
</body>
</html>