-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
98 lines (93 loc) · 4.78 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
<!DOCTYPE html>
<html>
<head>
<title>Discovery</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" media="screen">
<link rel="stylesheet" type="text/css" href="css/leaflet.css">
<link rel="stylesheet" type="text/css" href="css/leaflet.draw.css">
<link rel="stylesheet" type="text/css" href="css/styles.css">
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<a class="brand" href="#">Discovery</a>
<form id="connection-form" class="navbar-form pull-left">
<div id="control-group" class="control-group">
<div class="controls">
<input type="text" id="url" placeholder="Server ip / host">
<select id="index" class="input-small"></select>
<button type="button" id="connect" class="btn">Connect</button>
<button type="button" id="disconnect" class="btn">Disconnect</button>
</div>
</div>
</form>
<form id="search-form" class="navbar-form pull-right">
<div class="btn-group">
<button type="button" id="search" class="btn disabled"><i class="icon-search"></i> Search</button>
<button type="button" class="btn dropdown-toggle disabled" data-toggle="dropdown">
<span class="caret"></span>
</button>
<div class="dropdown-menu pull-right query-options">
<fieldset>
<legend>Query options</legend>
<h5>Search on indices…</h5>
<label class="checkbox inline"><input type="checkbox" name="types" value="node" checked> Node</label>
<label class="checkbox inline"><input type="checkbox" name="types" value="way" checked> Way</label>
<h5>Max results…</h5>
<input type="text" id="max-results" class="input-small" placeholder="Default (10)">
<h5>Filter by name…</h5>
<input type="text" id="name" class="input-small" placeholder="Name">
<h5>Filter by tags…</h5>
<div id="filters"></div>
<button type="button" id="add-filter" class="btn"><i class="icon-plus"></i></button>
</fieldset>
</div>
</div>
<button type="button" class="btn" data-toggle="modal" data-target="#about"><i class="icon-question-sign"></i></button>
</form>
<span id="took" class="navbar-text pull-right"></span>
</div>
</div>
<div id="map">
<div id="map-canvas" class="map-canvas"></div>
</div>
<div id="about" class="modal hide fade">
<div class="modal-header">
<h3>About <small>v1.0</small></h3>
</div>
<div class="modal-body">
<p><a href="https://github.com/ncolomer/discovery" target="_blank">Discovery</a> is an <a href="http://www.elasticsearch.org/" target="_blank">elasticsearch</a> site plugin to visualize <a href="http://www.openstreetmap.org/" target="_blank">OpenStreetMap</a><br/> data, indexed using the <a href="https://github.com/ncolomer/elasticsearch-osmosis-plugin" target="_blank">elasticsearch-osmosis-plugin</a>.</p>
<p>It uses these (really!) great plugins:
<ul>
<li><a href="http://jquery.com/" target="_blank">jQuery</a> and <a href="http://twitter.github.io/bootstrap/" target="_blank">Bootstrap</a> for the UI</li>
<li><a href="http://leafletjs.com/" target="_blank">Leaflet</a> to render <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> open tiles</li>
<li>And <a href="http://www.fullscale.co/elasticjs/" target="_blank">elastic.js</a> to query elasticsearch node</li>
</ul>
</p>
<p>This plugin is licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank"> Apache License, Version 2.0</a>.</p>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
<div style="position: absolute; top: 0; right: 0; border: 0;">
<a href="https://github.com/ncolomer/discovery" target="_blank">
<img src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub">
</a>
</div>
</div>
<script type="text/javascript" src="js/lib/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/lib/jquery-ui-1.10.3.min.js"></script>
<script type="text/javascript" src="js/lib/bootstrap.min.js"></script>
<script type="text/javascript" src="js/lib/leaflet.js"></script>
<script type="text/javascript" src="js/lib/leaflet.draw.js"></script>
<script type="text/javascript" src="js/lib/elastic.min.js"></script>
<script type="text/javascript" src="js/lib/elastic-jquery-client.min.js"></script>
<script type="text/javascript" src="js/scripts.js"></script>
<script type="text/javascript" src="js/map.js"></script>
<script type="text/javascript" src="js/es.js"></script>
<script type="text/javascript" src="js/ui.js"></script>
<script type="text/javascript" src="js/alert.js"></script>
</body>
</html>