forked from georchestra/sviewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
185 lines (180 loc) · 9.07 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<title>geOrchestra sviewer</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=100" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="generator" content="HTML Tidy for Linux (vers 25 March 2009), see www.w3.org" />
<!-- external libraries -->
<script type="text/javascript" src="lib/jquery/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="lib/qrcode.js/qrcode.min.js"></script>
<script src="build/proj4.js"></script>
<!-- OpenLayers -->
<!--
<link rel="stylesheet" href="build/ol.css" type="text/css" />
<script src="build/ol-simple.js" type="text/javascript"></script>
-->
<link rel="stylesheet" href="build/ol.css" type="text/css" />
<script src="build/ol.js" type="text/javascript"></script>
<!-- jquery mobile -->
<script type="text/javascript">
//<![CDATA[
var customConfig = {};
$(document).bind("mobileinit", function(){
$.mobile.hashListeningEnabled = false;
$.mobile.loader.prototype.options.text = "loading";
$.mobile.loader.prototype.options.textVisible = false;
$.mobile.loader.prototype.options.theme = "a";
$.mobile.loader.prototype.options.html = "";
$.mobile.activeBtnClass = 'unused';
});
//]]>
</script>
<link rel="stylesheet" href="lib/jquery/jquery.mobile-1.4.2.min.css" />
<script src="lib/jquery/jquery.mobile-1.4.2.min.js" type="text/javascript"></script>
<!-- local -->
<link rel="stylesheet" href="css/sviewer.css" type="text/css" />
<script src="js/sviewer.js" type="text/javascript"></script>
<script src="etc/i18n.js" type="text/javascript"></script>
<script src="etc/customConfig.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
// fix height of content to allow for header
function fixContentHeight() {
var header = $("#header");
var content = $("#frameMap");
var viewHeight = $(window).height();
var contentHeight = viewHeight - header.outerHeight();
if ((content.outerHeight() + header.outerHeight()) !== viewHeight) {
contentHeight -= (content.outerHeight() - content.height());
content.height(contentHeight);
}
if (window.map) {
map.updateSize();
} else {
initmap();
}
}
$(window).bind("orientationchange resize pageshow", fixContentHeight);
fixContentHeight();
});
//]]>
</script>
</head>
<body>
<div data-role="page">
<!-- content -->
<div data-role="content" id="frameMap" class="sv-framemap">
<!-- map -->
<div id="map" class="sv-map" tabindex="0">
<div id="marker"></div>
</div>
<!-- map controls -->
<div id="mapcontrols" class="sv-map-controls ui-nodisc-icon">
<a id="zeBt" href="#" accesskey="w" class="i18n ui-btn ui-icon-home-c ui-btn-icon-notext ui-btn-b" title="initial view">initial view</a>
<a id="ziBt" href="#" accesskey="+" class="i18n ui-btn ui-icon-plus-c ui-btn-icon-notext ui-btn-b" title="zoom +">zoom +</a>
<a id="zoBt" href="#" accesskey="-" class="i18n ui-btn ui-icon-minus-c ui-btn-icon-notext ui-btn-b" title="zoom -">zoom -</a>
<a id="bgBt" href="#" accesskey="b" class="i18n ui-btn ui-icon-layer-c ui-btn-icon-notext ui-btn-b" title="background">background</a>
<a id="prBt" href="#" accesskey="p" class="i18n ui-btn ui-icon-print-c ui-btn-icon-notext ui-btn-b" title="print" download="map.png">print</a>
</div>
<div id="panelcontrols" class="sv-map-panels" data-role="controlgroup" data-type="horizontal" class="ui-btn-right" data-theme="b">
<a href="#panelShare" accesskey="m" id="panelShareBtn" class="i18n ui-btn ui-icon-edit ui-btn-icon-right" data-rel="popup" data-position-to="window" title="Map"> </a>
<a href="#panelInfo" accesskey="i" id="panelInfoBtn" class="i18n ui-btn ui-icon-bullets ui-btn-icon-notext" data-rel="popup" data-position-to="window" title="Legend">Legend</a>
<a href="#panelQuery" accesskey="q" id="panelQueryBtn" class="i18n ui-btn ui-icon-info ui-btn-icon-notext" data-rel="popup" data-position-to="window" title="Query">Query</a>
<a href="#panelLocate" accesskey="l" id="panelLocateBtn" class="i18n ui-btn ui-icon-search ui-btn-icon-notext" data-rel="popup" data-position-to="window" title="Locate">Locate</a>
</div>
</div>
<!-- getfeatureinfo panel -->
<div id="panelQuery" class="sv-panel" data-role="popup">
<div data-role="header">
<a href="#" data-rel="back" class="i18n ui-btn ui-icon-delete ui-btn-icon-notext ui-corner-all ui-btn-right" title="Close">Close</a>
<h3 class="i18n">Query</h3>
</div>
<div data-role="content">
<div id="querycontent" class="i18n">Query the map</div>
</div>
</div>
<!-- info panel -->
<div id="panelInfo" class="sv-panel" data-role="popup">
<div data-role="header">
<h3 class="i18n">Legend</h3>
<a href="#" data-rel="back" class="i18n ui-btn ui-icon-delete ui-btn-icon-notext ui-corner-all ui-btn-right" title="Close">Close</a>
</div>
<div data-role="content">
<div id="legend" class="sv-legend"></div>
</div>
</div>
<!-- locate panel -->
<div id="panelLocate" class="sv-panel" data-role="popup">
<div data-role="header">
<h3 class="i18n">Locate</h3>
<a href="#" data-rel="back" class="i18n ui-btn ui-icon-delete ui-btn-icon-notext ui-corner-all ui-btn-right" title="Close">Close</a>
</div>
<div data-role="content">
<form id="addressForm" method="post" action="#">
<button id="zpBt" class="i18n ui-btn ui-icon-navigation ui-corner-all ui-mini " title="Where am I ?">Where am I ?</button>
<label for="searchInput" class="i18n">Address and/or city</label>
<div data-role="controlgroup" data-type="horizontal" class="ui-mini">
<input type="text"
name="searchInput"
id="searchInput"
data-wrapper-class="controlgroup-textinput ui-btn ui-mini"
value=""
title="Address and/or city" /><button class="i18n ui-btn ui-icon-search ui-btn-icon-notext " title="Locate">Locate</button>
</div>
<span id="locateMsg"></span>
</form>
<div>
<ul data-role="listview" data-inset="true" id="searchResults"></ul>
</div>
</div>
</div>
<!-- sld panel -->
<div id="panelSLD" class="sv-panel" data-role="popup">
<div data-role="header">
<h3 class="i18n">Parameters</h3>
<a href="#" data-rel="back" class="i18n ui-btn ui-icon-delete ui-btn-icon-notext ui-corner-all ui-btn-right" title="Close">Close</a>
</div>
<div data-role="content">
<!-- SLD controls -->
<div id="SLDsliders" data-theme="b">
</div>
</div>
</div>
<!-- share panel -->
<div id="panelShare" class="sv-panel" data-role="popup">
<div data-role="header">
<h3 class="i18n">Map</h3>
<a href="#" data-rel="back" class="i18n ui-btn ui-icon-delete ui-btn-icon-notext ui-corner-all ui-btn-right" title="Close">Close</a>
</div>
<div data-role="content" class="ui-mini">
<label for="setTitle" class="i18n">Title</label>
<input type="text" name="setTitle" id="setTitle" class="i18n" value="" placeholder="change title"/>
<div class="ui-grid-a">
<div class="ui-block-a">
<!-- social links -->
<div id="socialLinks"></div>
<!-- to georchestra viewer -->
<form id="georchestraForm" target="_blank" method="post" action="">
<input type="hidden" id="georchestraFormData" name="data" value="" />
<input type="submit" class="i18n ui-btn ui-corner-all" title="Edit with geOrchestra" value="geOrchestra" />
</form>
</div>
<!-- QQR code -->
<div class="ui-block-b">
<div class="center sv-permalink-wrap">
<a id="permalink" class="i18n ui-btn ui-shadow ui-corner-all" data-ajax="false" href="#" title="Permalink to this map">Permalink</a>
<div id="qrcode"></div>
</div>
</div>
</div>
</div>
</div>
<!-- end page -->
</div>
</body>
</html>