-
Notifications
You must be signed in to change notification settings - Fork 66
/
index.html
350 lines (316 loc) · 16.7 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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google Analytics -->
<!-- Replace UA-XXXXX-X with your Tracking-ID obtained from Google Analytics and remove the comments if you want to use Google Analytics
If compliance with EU's GDPR is necessary, consider the anonymize_ip parameter and an Opt-Out-Cookie.
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXX-X"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-XXXXX-X');
</script>
-->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1,width=device-width">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#000000">
<meta name="description" content="">
<meta name="author" content="">
<title>{myMapTitle}</title>
<!-- required libraries -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.0/css/bootstrap.min.css"
integrity="sha384-SI27wrMjH3ZZ89r4o+fGIJtnzkAnFs3E4qz9DIYioCQ5l9Rd/7UAa8DHcaL8jkWt" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel="stylesheet" href="./src/plugins/datatables/datatables.min.css"/>
<link rel="stylesheet" href="./src/plugins/datatables/buttons.dataTables.min.css"/>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin=""/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.css">
<link rel="stylesheet" href="./src/plugins/growl/stylesheets/jquery.growl.css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.2/leaflet.draw.css"/>
<link rel="stylesheet" href="./src/css/bootleaf.css">
<!-- optional libraries - comment out any libraries which are not being used to improve page load times -->
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/1.1.0/MarkerCluster.Default.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/1.1.0/MarkerCluster.css">
<link rel="stylesheet" href="./src/plugins/geocoders/Control.Geocoder.css"/>
<link rel="stylesheet" href="./src/plugins/bookmarks/leaflet.bookmarks.css"/>
<link rel="stylesheet" href="./src/plugins/leaflet-history/leaflet-history.css"/>
<!-- Customise the styles used in this map -->
<link rel="stylesheet" href="style.css">
<!-- favicons -->
<link rel="apple-touch-icon" sizes="76x76" href="./src/img/favicon-76.png">
<link rel="apple-touch-icon" sizes="120x120" href="./src/img/favicon-120.png">
<link rel="apple-touch-icon" sizes="152x152" href="./src/img/favicon-152.png">
<link rel="icon" sizes="196x196" href="./src/img/favicon-196.png">
<link rel="icon" type="image/x-icon" href="./src/img/favicon.ico">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<a class="navbar-brand" href="https://bootleaf.xyz">
Bootleaf homepage
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#" data-toggle="collapse" data-target=".navbar-collapse.in" id="about-btn">
<i class="fa fa-question-circle white"></i> About </a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="toolsDrop" role="button" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
<i class="fa fa-wrench white"></i> Tools</b>
</a>
<div class="dropdown-menu" aria-labelledby="toolsDrop">
<a href="#" class="dropdown-item" data-toggle="collapse" data-target=".navbar-collapse.in" id="full-extent-btn">
<i class="fa fa-arrows-alt"></i> Zoom To Full Extent
</a>
<a href="#" id="identify-btn" class="dropdown-item mapTools" data-tool="identify">
<i class="fa fa-info-circle"></i> Identify Features
</a>
<a href="#" id="queryWidget-btn" class="dropdown-item mapTools" data-tool="queryWidget">
<i class="fa fa-question-circle"></i> Query Widget
</a>
<a href="#" id="filterWidget-btn" class="dropdown-item mapTools" data-tool="filterWidget">
<i class="fa fa-filter"></i> Filter Widget
</a>
<a href="#" id="coordinates-btn" class="dropdown-item mapTools" data-tool="coordinates">
<i class="fa fa-dot-circle-o"></i> Get map coordinates
</a>
<a href="#" id="share-btn" class="dropdown-item mapTools" data-tool="share">
<i class="fa fa-share"></i> Share map
</a>
</div>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="basemapDropdown" role="button" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
<i class="fa fa-globe white"></i> Basemaps
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown" id="ulBasemap">
</div>
</li>
</ul>
</div>
</nav>
<div id="container">
<div id="sidebar" class="hidden-xs hidden-sm">
<div class="sidebar-wrapper">
<div class="card" id="pnlSidebar">
<div class="card-header">
<h5 class="card-title"><span id="sidebarTitle">Sidebar</span>
<button type="button" class="btn btn-xs btn-default pull-right" id="sidebar-hide-btn">
<i class="fa fa-chevron-left"></i>
</button>
</h5>
</div>
<div class="card-body">
<div class="row">
<div id="sidebarContents" class="col-xs-12 col-md-12">
<!-- contents are inserted programatically by the current active tool -->
</div>
</div>
</div>
</div>
</div>
</div>
<div id="map">
</div>
</div>
<div id="loading">
<div class="loading-indicator">
<div class="progress progress-striped active">
<div class="progress-bar progress-bar-info progress-bar-full"></div>
</div>
</div>
</div>
<div id="authenticationError">
<div class="row">
<div class="col-md-4 offset-md-4">
<div class="alert alert-danger" role="alert">
<h4>There was a problem authenticating one or more layers with ArcGIS. Please reload the page and try again.</h4>
</div>
</div>
</div>
</div>
<div class="modal fade" id="loginModal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Login to ArcGIS</h5>
</div>
<div class="modal-body">
<form class="form-signin">
<label for="username" class="sr-only">Email address</label>
<input type="text" id="username" class="form-control" placeholder="ArcGIS username" required="" autofocus="">
<label for="password" class="sr-only">Password</label>
<input type="password" id="password" class="form-control" placeholder="Password" required="">
<button id="btnArcGISOnline" class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
</form>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<div class="modal fade" id="aboutModal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 id="aboutTitle" class="modal-title">About this map</h5>
<button class="close" type="button" data-dismiss="modal" aria-hidden="true">×</button>
</div>
<div id="aboutContents" class="modal-body">
<p>{information about this map}</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">Close</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<div class="modal fade" id="shareModal" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Share URL</h5>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-12">
<span id="shareURL"></span>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">Close</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!-- handlebars templates -->
<script id="query-template" type="text/x-handlebars-template">
<div id="frmQueryWidget" class="well well-sm">
<div class="form-group">
<label for="queryWidgetLayer">Layer</label>
<select id="queryWidgetLayer" class="form-control">
{{#each this}}
<option value={{this.id}}>{{this.name}}</option>
{{/each}}
</select>
<label for="queryWidgetField">Field</label>
<select id="queryWidgetField" class="form-control">
</select>
<label for="queryWidgetOperator">Operator</label>
<select id="queryWidgetOperator" class="form-control">
</select>
<label for="queryWidgetValue">Value</label>
<input id="queryWidgetValue" type="text" class="form-control queryTask"
placeholder="Enter the value to search for">
<div id="btnRunQuery" class="btn btn-warning">Run Query</div>
<div class="checkbox" id="chkQueryExtent">
<label>
<input type="checkbox" id="chkQueryWithinMapExtent"> Within current map extent
</label>
</div>
<div class="checkbox" id="chkQueryPolygon">
<label>
<input type="checkbox" id="chkQueryWithinPolygon"> Within polygon
</label>
<div id="drawQueryWidget">
<span id="queryDrawControl"></span>
<span id="queryDrawControlHelp" class="info"> ← Activate the polygon tool then draw a shape on the map</span>
</div>
</div>
</div>
</div>
<div id="queryResults" class="dataTables_wrapper"></div>
</script>
<script id="filter-widget-template" type="text/x-handlebars-template">
<div id="frmFilterWidget" class="well well-sm">
<div class="form-group">
<label for="filterWidgetLayer">Layer</label>
<select id="filterWidgetLayer" class="form-control">
{{#each this}}
<option value={{this.id}}>{{this.name}}</option>
{{/each}}
</select>
</div>
<div id="filterSection">
</div>
<button id="btnRemoveFilter" class="btn btn-secondary">Remove filter</button>
<button id="btnApplyFilter" class="btn btn-warning">Apply filter</button>
<p class="btn-secondary" id="filterOutput"><span id="filterText"></span></p>
</div>
</script>
<script id="filter-template" type="text/x-handlebars-template">
<div class="form-group">
<label for="filterWidgetField">Field</label>
<select id="filterWidgetField" class="form-control">
</select>
<label for="filterWidgetOperator">Operator</label>
<select id="filterWidgetOperator" class="form-control">
</select>
<label for="filterWidgetValue">Value</label>
<input id="filterWidgetValue" type="text" class="form-control filterTask"
placeholder="Enter the value to filter on">
</div>
</script>
<!-- required libraries -->
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>-->
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.0/js/bootstrap.min.js"
integrity="sha384-3qaqj0lc6sV/qpzrc1N5DC6i1VRn/HyX4qdPaiEFbn54VjQBEU341pvjz7Dv3n6P"
crossorigin="anonymous"></script>
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
crossorigin=""></script>
<script src="https://unpkg.com/esri-leaflet@2.5.0/dist/esri-leaflet.js"
integrity="sha512-ucw7Grpc+iEQZa711gcjgMBnmd9qju1CICsRaryvX7HJklK0pGl/prxKvtHwpgm5ZHdvAil7YPxI1oWPOWK3UQ=="
crossorigin=""></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.2/leaflet.draw.js"></script>
<script src="https://unpkg.com/esri-leaflet-renderers@2.1.2/dist/esri-leaflet-renderers.js"
integrity="sha512-/McnqdlwYvfeOEWqoniEagFRQnLi/TNbkHe4EJypmZI02LBT7vBU/+PZ5W3FSsFFlRbnMCsJvnbp5MX8XOBrnQ=="
crossorigin=""></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.11/handlebars.min.js"></script>
<!-- Plugins. Comment out any unused libaries to improve the page load times -->
<script src="./src/plugins/bing/leaflet-bing-layer.min.js"></script>
<script src="./src/plugins/geocoders/Control.Geocoder.js"></script>
<script src="./src/plugins/geocoders/Control.Geocoder.harmony.js"></script>
<script src="./src/plugins/leaflet-history/leaflet-history.js"></script>
<script src="./src/plugins/leaflet-groupedlayercontrol/leaflet.groupedlayercontrol.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/1.1.0/leaflet.markercluster.js"></script>
<script src="https://unpkg.com/esri-leaflet-cluster@2.1.0/dist/esri-leaflet-cluster.js"
integrity="sha512-fEdNFHisleVtEYdLhW4Z2RsR7TN6hLutE/+O4D+skfTNY2rlHm8HOZARPWkdrFFy/+i2KjFxcZAKTUWaVfbV0g=="
crossorigin=""></script>
<script src="./src/plugins/bookmarks/Leaflet.Bookmarks.js"></script>
<script src="./src/plugins/WFST/Leaflet-WFST.min.js"></script>
<script src="./src/plugins/datatables/datatables.min.js"></script>
<script src="./src/plugins/datatables/buttons.html5.min.js"></script>
<script src="./src/plugins/datatables/dataTables.buttons.min.js"></script>
<script src="./src/plugins/datatables/buttons.bootstrap.min.js"></script>
<script src="./src/plugins/moment/moment.js"></script>
<script src="./src/plugins/proj4js/proj4.js"></script>
<script src="./src/plugins/proj4js/proj4leaflet.js"></script>
<script src="./src/plugins/growl/javascripts/jquery.growl.js"></script>
<!-- this app's code -->
<script src="./src/js/app.js"></script>
<script src="./src/js/listeners.js"></script>
<!-- optional - custom functionality -->
<script src="custom.js"></script>
<!-- the configuration file holding this app's customisations -->
<script src="config.js"></script>
</body>
</html>