-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
409 lines (350 loc) · 20.9 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
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="description" content="Calcite-Maps Demo - ArcGIS">
<meta name="author" content="">
<title>Super-Duper Extent Helper 4.x</title>
<!-- Calcite-Maps -->
<link rel="stylesheet" href="calcite/css/calcite-maps-bootstrap-arcgis-4.x.min.css">
<!-- ArcGIS JS 4.0 NOTE: This is a QA build. Use at own risk! -->
<link rel="stylesheet" href="https://js.arcgis.com/4.0/esri/css/main.css">
<!-- Custom styles for this template -->
<link rel="stylesheet" href="assets/css/style.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="assets/images/styles.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.2/css/font-awesome.min.css">
<style>
html,
body {
margin: 0;
padding: 0;
height: 100%;
}
</style>
</head>
<body class="calcite calcite-maps map-position-absolute nav-position-top nav-space-all zoom-top-right theme-inline-right">
<!-- Navbar -->
<nav class="navbar navbar-fixed-top navbar-text-light calcite-dark-blue-75">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#mainNav" aria-expanded="false">
<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">
<span class="esri-icon esri-icon-map-pin"></span>
</a>
<div class="navbar-info">
<div class="navbar-title text-overflow">Super-Duper Extent Helper 4.x</div>
<div class="navbar-subtitle text-overflow">Find Web Mercator and geographic extents</div>
</div>
</div>
<!-- Navbar collapse -->
<div id="mainNav" class="collapse navbar-collapse" aria-expanded="false">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown" role="presentation">
<a class="dropdown-toggle hidden-xs hidden-sm" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">2D Map <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a id="4xmap" class="hidden-xs hidden-sm" href="#" aria-controls="4xtab" aria-expanded="true">4.x (Coming soon)</a></li>
<li><a id="3xmap" class="hidden-xs hidden-sm" href="http://bsnider.github.io/web-javascript/super-duper-extent-helper/index.html" target="_blank" aria-controls="3xtab" aria-expanded="true">3.x</a></li>
</ul>
</li>
<li class="active"><a id="sceneNav" class="hidden-xs hidden-sm" href="#3dTab" aria-controls="3Dtab" role="tab" data-tooltip="tip" title="3D View" data-placement="top">3D Scene</a></li>
<li><a href="#" data-target="#panelBasemaps" data-tooltip="tip" title="Basemaps" aria-haspopup="true"><span class="glyphicon glyphicon-th-large"></span> Basemaps</a></li>
<li><a href="https://github.com/bsnider/super-duper-extent-helper-4" target="_blank" aria-haspopup="true" data-tooltip="tip" title="Go to repo"><i class="fa fa-github" aria-hidden="true"></i></span> Github</a></li>
<li>
<form id="searchNav" class="navbar-form navbar-search hidden-xs visible-sm visible-md visible-lg">
<div id="searchNavDiv"></div>
</form>
</li>
<li><a class="visible-xs" role="button" data-target="#panelSearch" aria-haspopup="true"><span class="glyphicon glyphicon-search"></span> Search</a></li>
</ul>
<!--/.nav -->
</div>
<!--/.nav-collapse -->
</div>
<!--/.container-fluid -->
</nav>
<!--/.navbar -->
<!-- Map Container -->
<div class="map-container">
<div id="hiddenPre">
<!-- these are the pre elements hidden behind the map -->
<pre style="" id="centerJSText"></pre>
<pre style="" id="cameraJSText"></pre>
</div>
<div id="tabContainer" class="tab-content">
<div id="2dTab" class="tab-pane fade" role="tabpanel">
<div id="mapViewDiv" class="map-position-absolute">
</div>
</div>
<div id="3dTab" class="tab-pane fade in active" role="tabpanel">
<div id="sceneViewDiv" class="map-position-absolute">
<div role="button" tabindex="0" class="esri-widget-button esri-widget esri-component esri-interactive" id="showElevation" visible="false">
<span data-dojo-attach-point="_iconNode" aria-hidden="true" class="esri-icon icon-mountains" style="font-size: 25px;" title="Toggle elevation"></span>
<span class="esri-icon-font-fallback-text">Toggle elevation</span>
</div>
</div>
</div>
</div>
</div>
<!-- /.container -->
<!-- Panel -->
<div class="panel-container">
<div id="panelAccordion" class="panel-group" role="tablist" aria-multiselectable="true">
<!-- Search Panel -->
<div id="panelSearch" class="panel panel-default collapse hidden-sm hidden-md hidden-lg">
<div id="headingSearch" class="panel-heading" role="tab">
<div class="panel-title">
<a class="panel-toggle collapsed" role="button" data-toggle="collapse" href="#collapseSearch" data-parent="#panelAccordion" aria-expanded="false" aria-controls="collapseSearch"><span class="glyphicon glyphicon-search" aria-hidden="true"></span> Search</a>
<a class="panel-close" role="button" data-toggle="collapse" data-target="#panelSearch"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a>
</div>
</div>
<div id="collapseSearch" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingSearch">
<div class="panel-body panel-overflow-visible">
<div id="searchPanelDiv"></div>
</div>
</div>
</div>
<!-- Basemaps Panel -->
<div id="panelBasemaps" class="panel panel-default collapse">
<div id="headingBasemaps" class="panel-heading" role="tab">
<div class="panel-title">
<a class="panel-toggle collapsed" role="button" data-toggle="collapse" href="#collapseBasemaps" aria-expanded="false" data-parent="#panelAccordion" aria-controls="collapseBasemaps"><span class="glyphicon glyphicon-th-large" aria-hidden="true"></span> Basemaps</a>
<a class="panel-close" role="button" data-toggle="collapse" data-target="#panelBasemaps"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a>
</div>
</div>
<div id="collapseBasemaps" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingBasemaps">
<div class="panel-body">
<select id="selectBasemapPanel" class="form-control">
<option value="streets" data-vector="vector-streets">Streets</option>
<option value="satellite" data-vector="satellite">Satellite</option>
<option value="hybrid" data-vector="hybrid">Hybrid</option>
<option value="national-geographic" data-vector="national-geographic">National Geographic</option>
<option value="topo" data-vector="vector-streets-relief">Topographic</option>
<option value="gray" data-vector="vector-canvas-light">Gray</option>
<option value="dark-gray" data-vector="vector-canvas-dark">Dark Gray</option>
<option value="osm" data-vector="osm">Open Street Map</option>
<option value="dark-gray" data-vector="vector-streets-night">Streets Night</option>
<option value="streets" data-vector="vector-streets-mobile">Streets Mobile</option>
</select>
</div>
</div>
</div>
</div>
<!-- /.panel-group -->
</div>
<!-- /.panel-container -->
<!-- Copy Modal -->
<div class="modal fade" id="copyModal" role="dialog">
<div class="modal-dialog modal-sm">
<!-- Modal content-->
<div class="modal-content">
<div id="copyModalId" class="modal-body">
<p>The selected text was copied to the clipboard.</p>
</div>
</div>
<!-- /.modal-content -->
</div>
</div>
<!-- /Copy Modal -->
<!-- Params Modal -->
<div class="modal fade" id="paramsModal" role="dialog">
<div class="modal-dialog modal-sm">
<!-- Modal content-->
<div class="modal-content">
<div id="paramsModalId" class="modal-body">
</div>
</div>
<!-- /.modal-content -->
</div>
</div>
<!-- /Copy Modal -->
<!-- Panel -->
<div id="propertiesPanelContainer" class="panel-container">
<div id="panelAccordion1" class="panel-group" role="tablist" aria-multiselectable="true">
<div id="panelParams" class="panel panel-default ">
<div id="headingParams" class="panel-heading" role="tab">
<div class="panel-title">
<a class="panel-toggle" role="button" data-toggle="collapse" href="#collapseParams" data-parent="#panelAccordion1" aria-expanded="true" aria-controls="collapseParams" style="font-size:19px"><span class="glyphicon glyphicon-cog" aria-hidden="true"></span> Parameters</a>
<a class="panel-close" role="button" href="https://developers.arcgis.com/javascript/beta/api-reference/esri-views-SceneView.html" target="_blank" style="font-size:14px"><span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span></a>
</div>
</div>
<div id="collapseParams" class="panel-collapse in" role="tabpanel" aria-labelledby="headingCenter">
<!-- Center Panel -->
<div class="panel-body">
<span id="centerText" class="preText">
<div class="row">
<div class="col-xs-6">
<div id="centerLabel"><span class="glyphicon glyphicon-camera" aria-hidden="true"></span> Center</div>
</div>
<div class="col-xs-6">
<button id="centerParamsCopy" type="button" class="btn btn-default btn-sm text-center" style="" href="#" data-placement="bottom" data-toggle="modal" data-tooltip="tip" title="Copy" data-target="#copyModal"><span class="glyphicon glyphicon-copy"></span> Copy as JavaScript</button>
</div>
</div>
<br>
<div class="row">
<div class="col-xs-4">
<hr>
</div>
</div>
<label for="basic-url">Geographic Coordinates (Long, Lat):</label>
<div class="row">
<div class="col-sm-8">
<div class="input-group input-group-sm">
<!-- <span class="input-group-addon" id="basic-addon2">(</span> -->
<input type="text" id="centerLatLong" class="form-control coord latLng" aria-label="Copy"></input>
<!-- <span class="input-group-addon" id="basic-addon2">)</span> -->
<div class="input-group-btn">
<button id="centerLatLongRefresh" type="button" class="btn btn-default refreshBtn coordsBtn" data-tooltip="tip" title="Refresh map"><span class="glyphicon glyphicon-refresh"></span></button>
<button id="centerLatLongCopy" type="button" class="btn btn-default copyBtn coordsBtn" style="border-left:0px !important" data-tooltip="tip" title="Copy" data-toggle="modal" data-target="#copyModal"><span class="glyphicon glyphicon-copy"></span></button>
</div>
</div>
</div>
</div>
<label for="basic-url">Web Mercator (X, Y):</label>
<div class="row">
<div class="col-sm-10">
<div class="input-group input-group-sm">
<input type="text" id="centerWebMerc" class="form-control coord webMerc" aria-label="Copy"></input>
<div class="input-group-btn">
<button id="centerMercRefresh" type="button" class="btn btn-default refreshBtn coordsBtn" data-tooltip="tip" title="Refresh map"><span class="glyphicon glyphicon-refresh"></span></button>
<button id="centerMercCopy" type="button" class="btn btn-default copyBtn coordsBtn" style="border-left:0px !important" data-tooltip="tip" title="Copy" data-toggle="modal" data-target="#copyModal"><span class="glyphicon glyphicon-copy"></span></button>
</div>
</div>
</div>
</div>
<label for="basic-url">Z-value (m):</label>
<div class="row">
<div class="col-sm-6">
<div class="input-group input-group-sm">
<input type="text" id="centerZVal" class="form-control zee" aria-label="Copy"></input>
<div class="input-group-btn">
<button id="centerZeeRefresh" type="button" class="btn btn-default refreshBtn zeeBtn" data-tooltip="tip" title="Refresh map"><span class="glyphicon glyphicon-refresh"></span></button>
<button id="centerZeeCopy" type="button" class="btn btn-default copyBtn zeeBtn" style="border-left:0px !important" data-tooltip="tip" title="Copy" data-toggle="modal" data-target="#copyModal"><span class="glyphicon glyphicon-copy"></span></button>
</div>
</div>
</div>
<!-- </div> -->
</div>
<hr>
<div class="row">
<div class="col-xs-6">
<div id="cameraLabel"><span class="glyphicon glyphicon-camera" aria-hidden="true"></span> Camera</div>
</div>
<div class="col-xs-6">
<button id="cameraParamsCopy" type="button" class="btn btn-default btn-sm text-center" style="" href="#" data-placement="bottom" data-tooltip="tip" title="Copy" data-toggle="modal" data-target="#copyModal"><span class="glyphicon glyphicon-copy"></span> Copy as JavaScript</button>
</div>
</div>
<br>
<div class="row">
<div class="col-xs-4">
<hr>
</div>
</div>
<label for="basic-url">Field of view (°):</label>
<div class="row">
<div class="col-sm-6">
<div class="input-group input-group-sm">
<input type="text" id="cameraFOV" class="form-control fov" aria-label="Copy"></input>
<div class="input-group-btn">
<button id="cameraFOVRefresh" type="button" class="btn btn-default refreshBtn fovBtn" data-tooltip="tip" title="Refresh map"><span class="glyphicon glyphicon-refresh"></span></button>
<button id="cameraFOVCopy" type="button" class="btn btn-default copyBtn fovBtn" style="border-left:0px !important" data-tooltip="tip" title="Copy" data-toggle="modal" data-target="#copyModal"><span class="glyphicon glyphicon-copy"></span></button>
</div>
</div>
</div>
</div>
<label for="basic-url">Heading (°):</label>
<div class="row">
<div class="col-sm-6">
<div class="input-group input-group-sm">
<input type="text" id="cameraHeading" class="form-control heading" aria-label="Copy"></input>
<div class="input-group-btn">
<button id="cameraHeadingRefresh" type="button" class="btn btn-default refreshBtn headingBtn" data-tooltip="tip" title="Refresh map"><span class="glyphicon glyphicon-refresh"></span></button>
<button id="cameraHeadingCopy" type="button" class="btn btn-default copyBtn headingBtn" style="border-left:0px !important" data-tooltip="tip" title="Copy" data-toggle="modal" data-target="#copyModal"><span class="glyphicon glyphicon-copy"></span></button>
</div>
</div>
</div>
</div>
<label for="basic-url">Tilt (°):</label>
<div class="row">
<div class="col-sm-6">
<div class="input-group input-group-sm">
<input type="text" id="cameraTilt" class="form-control tilt" aria-label="Copy"></input>
<div class="input-group-btn">
<button id="cameraTiltRefresh" type="button" class="btn btn-default refreshBtn tiltBtn" data-tooltip="tip" title="Refresh map"><span class="glyphicon glyphicon-refresh"></span></button>
<button id="cameraTiltCopy" type="button" class="btn btn-default copyBtn tiltBtn" style="border-left:0px !important" data-tooltip="tip" title="Copy" data-toggle="modal" data-target="#copyModal"><span class="glyphicon glyphicon-copy"></span></button>
</div>
</div>
</div>
</div>
<label for="basic-url">Geographic Coordinates (Long, Lat):</label>
<div class="row">
<div class="col-sm-8">
<div class="input-group input-group-sm">
<input type="text" id="cameraLatLong" class="form-control coord latLng" aria-label="Copy"></input>
<div class="input-group-btn">
<button id="cameraLatLongRefresh" type="button" class="btn btn-default refreshBtn coordsBtn" data-tooltip="tip" title="Refresh map"><span class="glyphicon glyphicon-refresh"></span></button>
<button id="centerLatLongCopy" type="button" class="btn btn-default copyBtn coordsBtn" style="border-left:0px !important" data-tooltip="tip" title="Copy" data-toggle="modal" data-target="#copyModal"><span class="glyphicon glyphicon-copy"></span></button>
</div>
</div>
</div>
</div>
<label for="basic-url">Web Mercator (X, Y):</label>
<div class="row">
<div class="col-sm-10">
<div class="input-group input-group-sm">
<input type="text" id="cameraWebMerc" class="form-control coord webMerc" aria-label="Copy"></input>
<div class="input-group-btn">
<button id="cameraMercRefresh" type="button" class="btn btn-default refreshBtn coordsBtn" data-tooltip="tip" title="Refresh map"><span class="glyphicon glyphicon-refresh"></span></button>
<button id="cameraMercCopy" type="button" class="btn btn-default copyBtn coordsBtn" style="border-left:0px !important" data-tooltip="tip" title="Copy" data-toggle="modal" data-target="#copyModal"><span class="glyphicon glyphicon-copy"></span></button>
</div>
</div>
</div>
</div>
<label for="basic-url">Z-value (m):</label>
<div class="row">
<div class="col-sm-6">
<div class="input-group input-group-sm">
<input type="text" id="cameraZVal" class="form-control zee" aria-label="Copy"></input>
<div class="input-group-btn">
<button id="cameraZeeCopy" type="button" class="btn btn-default refreshBtn zeeBtn" data-tooltip="tip" data-placement="top" title="Refresh map"><span class="glyphicon glyphicon-refresh"></span></button>
<button id="cameraZeeCopy" type="button" class="btn btn-default copyBtn zeeBtn" style="border-left:0px !important" data-tooltip="tip" data-placement="top" title="Copy" data-toggle="modal" data-target="#copyModal"><span class="glyphicon glyphicon-copy"></span></button>
</div>
</div>
</div>
</div>
<br>
<!-- </div> -->
</span>
</div>
</div>
</div>
<!-- /.panel-params -->
</div>
<!-- /.panel-group -->
</div>
<!-- /.panel-container -->
<!-- ArcGIS JS 4.0 -->
<script src="https://js.arcgis.com/4.0/"></script>
<!-- Main JavaScript file -->
<script type="text/javascript" src="assets/js/main.js"></script>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<!-- jQuery (for Bootstrap's JavaScript plugins). NOTE: You can also use pure Dojo. See examples. -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- Include all plugins or individual files as needed -->
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<!--script src="../../assets/js/ie10-viewport-bug-workaround.js"></script-->
<!-- Calcite-Maps -->
<!-- <script src="../../dist/js/jquery/calcitemaps.js"></script> -->
<script src="calcite/js/jquery/calcitemaps.js"></script>
</body>
</html>