-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathourMap.html
140 lines (115 loc) · 5.1 KB
/
ourMap.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!doctype html>
<html lang="en">
<head>
<link rel="stylesheet" href="map.css">
<meta charset="utf-8"/>
<link href="assets/img/favicon.ico" rel="icon" type="image/png">
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/>
<title>Merck Map</title>
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport'/>
<meta content="width=device-width" name="viewport"/>
<!-- Bootstrap core CSS -->
<link href="assets/css/bootstrap.min.css" rel="stylesheet"/>
<!-- Animation library for notifications -->
<link href="assets/css/animate.min.css" rel="stylesheet"/>
<!-- Light Bootstrap Table core CSS -->
<link href="assets/css/light-bootstrap-dashboard.css?v=1.4.0" rel="stylesheet"/>
<!-- Fonts and icons -->
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300' rel='stylesheet' type='text/css'>
<link href="assets/css/pe-icon-7-stroke.css" rel="stylesheet"/>
<script src='https://api.mapbox.com/mapbox.js/v3.2.0/mapbox.js'></script>
<link href='https://api.mapbox.com/mapbox.js/v3.2.0/mapbox.css' rel='stylesheet' />
<script src='https://api.mapbox.com/mapbox.js/plugins/leaflet-markercluster/v1.0.0/leaflet.markercluster.js'></script>
<link href='https://api.mapbox.com/mapbox.js/plugins/leaflet-markercluster/v1.0.0/MarkerCluster.css'
rel='stylesheet'/>
<link href='https://api.mapbox.com/mapbox.js/plugins/leaflet-markercluster/v1.0.0/MarkerCluster.Default.css'
rel='stylesheet'/>
<!-- Core JS Files -->
<script src="assets/js/jquery.3.2.1.min.js" type="text/javascript"></script>
<script src="assets/js/bootstrap.min.js" type="text/javascript"></script>
<!-- Charts Plugin -->
<script src="assets/js/chartist.min.js"></script>
<!-- Notifications Plugin -->
<script src="assets/js/bootstrap-notify.js"></script>
<!-- Light Bootstrap Table Core javascript and methods for Demo purpose -->
<script src="assets/js/light-bootstrap-dashboard.js?v=1.4.0"></script>
<!-- Light Bootstrap Table DEMO methods, don't include it in your project! -->
<script src="assets/js/demo.js"></script>
</head>
<body>
<div class="wrapper">
<div class="sidebar" data-color="blue">
<div class="sidebar-wrapper">
<ul class="nav">
<li class="inactive">
<a href="index.html">
<i class="pe-7s-map-marker"></i>
<p>Merck Map</p>
</a>
</li>
<li class="inactive">
<a href="Table.html">
<i class="pe-7s-menu"></i>
<p>Merck Table</p>
</a>
</li>
<li class="active">
<a href="ourMap.html">
<i class="pe-7s-map-marker"></i>
<p>Our Map</p>
</a>
</li>
<li class="inactive">
<a href="ourTable.html">
<i class="pe-7s-menu"></i>
<p>Our Table</p>
</a>
</li>
</ul>
</div>
</div>
<div class="main-panel">
<nav class="navbar navbar-default navbar-fixed">
<div class="container-fluid">
<div class="navbar-header">
<button class="navbar-toggle" data-toggle="collapse" type="button">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Our Map - Data we imported</a>
</div>
</div>
</nav>
<script src="OurData.js"></script>
<div class="content">
<div class="container-fluid">
<div class="row">
<div id="map"></div>
<script>
L.mapbox.accessToken = 'pk.eyJ1IjoibWVldHRoZXBhdGVsIiwiYSI6ImNqdDJiazloejF4cnE0NG9zcWh5d2ExbWMifQ.qZNH2mi-eH7ecblWiU2_cQ';
var map = L.mapbox.map('map')
.setView([40, -74], 3)
.addLayer(L.mapbox.styleLayer('mapbox://styles/mapbox/streets-v11'));
var markers = new L.MarkerClusterGroup();
for (var i = 0; i < addressPoints.length; i++) {
var a = addressPoints[i];
var title = a[2];
var marker = L.marker(new L.LatLng(a[0], a[1]), {
icon: L.mapbox.marker.icon({'marker-symbol': 'post', 'marker-color': '0044FF'}),
title: title
});
marker.bindPopup(title);
markers.addLayer(marker);
}
map.addLayer(markers);
</script>
</div>
</div>
</div>
</div>
</div>
</body>
</html>