-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
executable file
·103 lines (97 loc) · 3.46 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ember.js - OpenLayers 3</title>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/ol.css">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap-theme.min.css">
<style>
body {
padding-top: 50px;
}
#map {
height: 500px;
}
ul {
list-style-type: none;
}
</style>
</head>
<body>
<script type="text/x-handlebars">
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<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="#">Ember.js - OpenLayers 3</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
{{#linkTo "index" tagName="li"}}
<a {{bindAttr href="view.href"}}>Home</a>
{{/linkTo}}
{{#linkTo "about" tagName="li"}}
<a {{bindAttr href="view.href"}}>About</a>
{{/linkTo}}
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<div class="container">
<div class="row">
{{outlet}}
</div>
</div>
</script>
<script type="text/x-handlebars" id="components/map-panel">
<div id="map" class="col-md-8"></div>
</script>
<script type="text/x-handlebars" id="components/layer-switcher">
<ul><h4>{{group}}</h4>
{{#each item in model}}
<li>
{{#if item.exclusive}}
<label>{{view Ember.RadioButton name=group selectionBinding="selected"
valueBinding="item.title" checkedBinding="item.visible"}} {{item.title}}</label>
{{else}}
{{view Ember.Checkbox checkedBinding="item.visible"}} {{item.title}}
<button class="btn btn-default btn-xs" {{action "removeSelected" item}}>
<span class="glyphicon glyphicon-trash"></span>
</button>
{{/if}}
</li>
{{/each}}
</ul>
</script>
<script type="text/x-handlebars" id="index">
{{map-panel}}
<div class="col-md-4" id="layer-manager">
{{#each group in groupedContent}}
{{layer-switcher map=App.Map group=group.name model=group.content}}
{{/each}}
</div>
</script>
<script type="text/x-handlebars" id="about">
<img src="http://boundlessgeo.com/wp-content/themes/open-geo/images/logo.png"/>
<h3>Example of how to combine Ember.js and OpenLayers 3</h3>
For more information please contact <a href="http://boundlessgeo.com/about/contact-us/">Boundless</a>
</script>
<script src="js/libs/jquery-1.10.2.js"></script>
<script src="js/libs/handlebars-1.1.2.js"></script>
<script src="js/libs/ember-1.2.0.js"></script>
<script src="js/libs/groupable.js"></script>
<script src="js/libs/ol-whitespace.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
<script src="js/boundless.js"></script>
<script src="js/app.js"></script>
</body>
</html>