-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
123 lines (107 loc) · 4.48 KB
/
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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="apple-touch-icon" sizes="76x76" href="assets/img/apple-icon.png">
<link rel="icon" href="assets/img/favicon.ico">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Melbourne Bicycle Map</title>
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="assets/css/ol.css" />
<link rel="stylesheet" href="bootstrap3/css/bootstrap.css" />
<link rel="stylesheet" href="assets/css/gsdk.css" />
<link rel="stylesheet" href="assets/css/demo.css" />
<!-- Font Awesome -->
<link href="bootstrap3/css/font-awesome.css" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Grand+Hotel' rel='stylesheet' type='text/css'>
<script src="https://openlayers.org/en/v4.6.5/build/ol.js" type="text/javascript"></script>
<style>
.map {
height: 100%;
width: 100%;
}
</style>
</head>
<body>
<div id="navbar-full">
<div class="container">
<nav class="navbar navbar-ct-blue navbar-fixed-top" role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="https://maps.philipmallis.com">
<div class="logo-container">
<div class="logo">
<img src="assets/img/new_logo.png">
</div>
<div class="brand">
Philip Mallis
</div>
</div>
</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li><a href="">Map</a></li>
<li><a href="info">Information</a></li>
<li><a href="data">Data</a></li>
<li><a href="https://github.com/philam/melbournebikemap" class="btn btn-round btn-default">View on GitHub</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
</div><!-- end container-->
</div>
<div>
<div id="map">
<div class="container-fluid">
<script>
var extent = [0, 0, 1472, 1222];
var projection = new ol.proj.Projection({
code: 'bicycle-map',
units: 'pixels',
extent: extent
});
var map = new ol.Map({
layers: [
new ol.layer.Image({
source: new ol.source.ImageStatic({
attributions: 'This page uses <a href="http://openlayers.org">OpenLayers</a>, licensed under <a href="https://tldrlegal.com/license/bsd-2-clause-license-(freebsd)">2-Clause BSD</a>. Map licensed under <a href="https://creativecommons.org/licenses/by-nc-nd/4.0/">CC BY-NC-ND 4.0 </a> Please don’t steal :)',
url: 'assets/img/bikemap_web_small.png',
projection: projection,
imageExtent: extent
})
})
],
target: 'map',
view: new ol.View({
projection: projection,
center: ol.extent.getCenter(extent),
zoom: 2,
maxZoom: 6
})
});
</script>
</div>
</div>
</div>
<script src="jquery/jquery-1.10.2.js" type="text/javascript"></script>
<script src="assets/js/jquery-ui-1.10.4.custom.min.js" type="text/javascript"></script>
<script src="bootstrap3/js/bootstrap.js" type="text/javascript"></script>
<script src="assets/js/gsdk-checkbox.js"></script>
<script src="assets/js/gsdk-radio.js"></script>
<script src="assets/js/gsdk-bootstrapswitch.js"></script>
<script src="assets/js/get-shit-done.js"></script>
<script src="assets/js/presentation-page/jquery.sharrre.js"></script>
<script src="assets/js/demo.js"></script>
<script src="assets/js/custom.js"></script>
</body>
</html>