-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmobile.html
1447 lines (1319 loc) · 102 KB
/
mobile.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
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE HTML>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Security-Policy" content="
child-src blob:;
connect-src http: https: file:;
font-src 'self';
frame-src 'none';
default-src 'self' data: gap: cdvfile: 'unsafe-eval';
img-src data: blob: filesystem: 'self' http: https: *;
manifest-src *;
media-src *;
object-src resource:;
prefetch-src 'none';
script-src 'self' 'unsafe-inline' 'unsafe-eval' ;
style-src 'self' 'unsafe-inline';
">
<meta name="author" content="Nico Höllerich">
<title>Cirspecte</title>
<link rel="stylesheet" href="assets/js/lib/pannellum/src/css/pannellum.css" />
<link rel="stylesheet" href="assets/css/leaflet.css" />
<link rel="stylesheet" href="assets/css/L.Control.Layers.Tree.css" />
<link rel="stylesheet" href="assets/css/leaflet.control.minimap.css" />
<link rel="stylesheet" href="assets/css/MarkerCluster.css" />
<link rel="stylesheet" href="assets/css/MarkerCluster.Default.css" />
<link rel="stylesheet" href="assets/css/bootstrap.min.css" />
<link rel="stylesheet" href="assets/css/vis-timeline-graph2d.css" />
<link rel="stylesheet" href="assets/css/select2.min.css">
<link rel="stylesheet" href="assets/css/bootstrap-slider.min.css">
<link rel="stylesheet" href="assets/css/jstree-default/style.css" />
<link rel="stylesheet" href="assets/css/tempusdominus-bootstrap-3.min.css" />
<link rel="stylesheet" href="assets/css/simple-bars.css" />
<link rel="stylesheet" href="assets/css/styles.css" />
<link rel="stylesheet" href="assets/css/mobile.css" />
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="assets/js/lib/platform.js"></script>
<!-- <script src="https://maps.googleapis.com/maps/api/js" async defer></script> -->
<script type="text/javascript" src="assets/js/init.js"></script>
<script src="assets/js/lib/localforage.min.js"></script> <!-- for Leaflet.offline -->
<!-- Make sure you put this AFTER Leaflet's CSS -->
<script src="assets/js/lib/leaflet.js"></script>
<script src="assets/js/Leaflet.control.minimap.js"></script>
<script src="assets/js/lib/Leaflet.Path.drag.js"></script>
<script src="assets/js/lib/Leaflet.offline.js"></script>
<script src="assets/js/lib/L.Control.Layers.Tree.js"></script>
<script src="assets/js/lib/leaflet.markercluster.js"></script>
<script src="assets/js/lib/leaflet.markercluster.layersupport.js"></script>
<script src="assets/js/lib/Leaflet.ImageOverlay.Rotated.js"></script>
<script src="assets/js/lib/Leaflet.AccuratePosition.js"></script>
<script src="assets/js/lib/Leaflet.GoogleMutant.js"></script>
<script src="assets/js/lib/Bing.js"></script>
<script src="assets/js/lib/esri-leaflet.js"></script>
<script type="text/javascript" src="assets/js/lib/pannellum/src/js/libpannellum.js"></script>
<script type="text/javascript" src="assets/js/lib/pannellum/src/js/pannellum.js"></script>
<script type="text/javascript" src="assets/js/lib/jquery.min.js"></script>
<script type="text/javascript" src="assets/js/lib/popper.js"></script>
<script type="text/javascript" src="assets/js/lib/moment-with-locales.min.js"></script>
<script type="text/javascript">
// auto-detect language setting for date formatting
moment.locale(window.navigator.userLanguage || window.navigator.language);
</script>
<script type="text/javascript" src="assets/js/lib/bootstrap.min.js"></script>
<script type="text/javascript" src="assets/js/lib/select2.min.js"></script>
<script type="text/javascript" src="assets/js/lib/bootstrap-slider.min.js"></script>
<script type="text/javascript" src="assets/js/lib/tempusdominus-bootstrap-3.min.js"></script>
<script type="text/javascript" src='assets/js/lib/knockout-3.4.2.js'></script>
<script type="text/javascript" src="assets/js/lib/knockout.mapping-latest.js"></script>
<script type="text/javascript" src="assets/js/lib/knockout.binding.dateTimePicker.js"></script>
<script type="text/javascript" src="assets/js/lib/bootstrap-slider-knockout-binding.js"></script>
<script type="text/javascript" src="assets/js/lib/priority-queue.min.js"></script>
<script type="text/javascript" src="assets/js/lib/Rx.min.js"></script>
<script type="text/javascript" src="assets/js/lib/Rx.webworker.min.js"></script>
<script type="text/javascript" src="assets/js/lib/numeric.min.js"></script>
<script type="text/javascript" src="assets/js/lib/exif.js"></script>
<script type="text/javascript" src="assets/js/lib/clipboard.min.js"></script>
<script type="text/javascript" src="assets/js/lib/fflate.min.js"></script>
<script type="text/javascript" src="assets/js/lib/threejs/three.js"></script>
<script type="text/javascript" src="assets/js/lib/threejs/DataUtils.js"></script>
<script type="text/javascript" src="assets/js/lib/threejs/RGBELoader.js"></script>
<script type="text/javascript" src="assets/js/lib/threejs/EXRLoader.js"></script>
<script type="text/javascript" src="assets/js/lib/geodesy/dms.js"></script>
<script type="text/javascript" src="assets/js/lib/geodesy/vector3d.js"></script>
<script type="text/javascript" src="assets/js/lib/geodesy/latlon-ellipsoidal.js"></script>
<script type="text/javascript" src="assets/js/lib/geodesy/latlon-vincenty.js"></script>
<script type="text/javascript" src="assets/js/lib/vis-timeline-graph2d.min.js"></script>
<script type="text/javascript" src="assets/js/lib/jstree.js"></script>
<script type="text/javascript" src="assets/js/config.js"></script>
<script type="text/javascript" src="assets/js/model.js"></script>
<script type="text/javascript" src="assets/js/configurator.js"></script>
<script type="text/javascript" src="assets/js/logger.js"></script>
<script type="text/javascript" src="assets/js/map.js"></script>
<script type="text/javascript" src="assets/js/panorama.js"></script>
<script type="text/javascript" src="assets/js/timeline.js"></script>
<script type="text/javascript" src="assets/js/filesystem.js"></script>
<script type="text/javascript" src="assets/js/util.js"></script>
<script type="text/javascript" src="assets/js/groupEditor.js"></script>
<script type="text/javascript" src="assets/js/navigation.js"></script>
<script type="text/javascript" src="assets/js/common.js"></script>
<script type="text/javascript" src="assets/js/mobile.js"></script>
<script type="text/javascript" src="assets/js/commandHistory.js"></script>
<script type="text/javascript" src="assets/js/persistence.js"></script>
</head>
<body>
<!-- Sidebar -->
<div id="sidebar-wrapper">
<a href="#" id="sidebar-collapser" class="btn" title="Close the sidebar"
onclick="$('#sidebar-wrapper').addClass('collapsed');$('#sidebar-expander').show()">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
<div id="group-editor" class="tab-pane fade in active">
<ul class="sidebar-nav">
<li>
<div class="form" id="temporal-group-selector">
<label for="temporalGroupSelector" title="Forms a tour through time by connecting the shots from several timepoint tours.">Time Travel Tour</label><br />
<!-- .js-example-responsive must be initialized in javascript -->
<select type="select" class="form-control" id="temporalGroupSelector" data-live-search="true" data-show-subtext="true" name="temporalGroups"
data-bind="options: temporalGroups, optionsCaption: 'Select a time travel tour ...', optionsText: g => {return g.name;}, value: current.temporalGroup"></select>
</div>
</li>
<li>
<button class="btn btn-default" data-bind="click: () => {beginCreate(temporalGroup);}">
<span class="glyphicon glyphicon-plus"></span>
</button>
<span>
Create Tour
</span>
</li>
<li>
<button class="btn btn-default" data-bind="click: deleteCurrentTemporalGroup, enable: $root.current.temporalGroup">
<span class="glyphicon glyphicon-trash"></span>
</button>
<span>
Delete Tour
</span>
</li>
<li>
<button class="btn btn-default" data-bind="click: () => {addFiles($root.current.temporalGroup());}, enable: $root.current.temporalGroup">
<span class="glyphicon glyphicon-import"></span>
</button>
<span>
Add Panoramas
</span>
</li>
<li>
<div class="form" id="spatial-group-selector">
<label for="spatialGroupSelector" title="A timepoint tour aggregates several panoramas shot approximately at the same time. Forms a "classical" panorama tour.">Timepoint Tour</label><br />
<!-- .js-example-responsive must be initialized in javascript -->
<select type="select" class="form-control" id="spatialGroupSelector" data-live-search="true" data-show-subtext="true" name="spatialGroups"
data-bind="options: spatialGroups, optionsCaption: 'Select a timepoint tour ...', optionsText: g => {return g.superGroup.name + ': ' + g.name;}, value: current.spatialGroup, disable: $root.disabled"></select>
</div>
</li>
<li>
<button class="btn btn-default" data-bind="click: () => {beginCreate(spatialGroup);}">
<span class="glyphicon glyphicon-plus"></span>
</button>
<span>
Create Tour
</span>
</li>
<li>
<button class="btn btn-default" data-bind="click: deleteCurrentSpatialGroup, enable: $root.current.spatialGroup">
<span class="glyphicon glyphicon-trash"></span>
</button>
<span>
Delete Tour
</span>
</li>
<li>
<button class="btn btn-default" data-bind="click: () => {addFiles($root.current.spatialGroup());}, enable: $root.current.spatialGroup">
<span class="glyphicon glyphicon-import"></span>
</button>
<span>
Add Panoramas
</span>
</li>
<li data-bind="visible: $root.gpsCoordinates">
<button class="btn btn-default" data-bind="click: $root.createPlaceholder, enable: $root.current.spatialGroup">
<span class="glyphicon glyphicon-map-marker"></span>
</button>
<span title="Create a placeholder at your current location.">
Add GPS Location
</span>
</li>
<li>
<div class="form-group">
<label for="editing-mode-combobox" title="Select what happens when clicking on a point on the map. When drawing a polyline the endpoint of one line is automatically the start for the next line.">Editing Mode</label>
<select type="select" class="form-control" id="editingModeSelector" data-live-search="true" data-show-subtext="true" name="editingModes"
data-bind="options: editingModes, value: editingMode"></select>
</div>
</li>
<li>
<div class="checkbox">
<label for="group-edit-drag-current-vertex-checkbox">
<input type="checkbox" value="group-edit-drag-current-vertex" id="group-edit-drag-current-vertex-checkbox" data-bind="checked:dragCurrentVertex">Drag Vertex
</label>
</div>
</li>
</ul>
</div>
<!-- /#group-editor -->
</div>
<!-- /#sidebar-wrapper -->
<div id="right-pane-wrapper">
<div id="right-pane">
<div id="topbar-wrapper" class="fixed">
<div id="topbar">
<div id="topbar-nav">
<ul class="nav nav-pills">
<li title="Show sidebar" id="sidebar-expander" style="display:none;"><a href="#" class="btn topbar-nav-item" onclick="$('#sidebar-wrapper').removeClass('collapsed'); $('#sidebar-expander').hide()"><span class="glyphicon glyphicon-chevron-right"></span></a></li>
<li title="Save tour.json"><a href="#" id="save-workspace-as" class="btn topbar-nav-item"><span class="glyphicon glyphicon-save-file"></span></a></li>
<li title="Save workspace"><a href="#" id="save-workspace" class="btn topbar-nav-item" style="display:none"><span class="glyphicon glyphicon-save"></span></a></li>
<li title="Undo (Ctrl + Z)" id="undo-button" data-bind="css: { 'not-active': undoStackCount() == 0 }, click: undo"><a href="#" class="btn topbar-nav-item"><span class="glyphicon glyphicon-share-alt" style="transform:matrix(-0.9397,0.342,0.342,0.9397,0,0)"></span></a></li>
<li title="Redo (Ctrl + Y)" id="redo-button" data-bind="css: { 'not-active': redoStackCount() == 0 }, click: redo"><a href="#" class="btn topbar-nav-item"><span class="glyphicon glyphicon-share-alt" style="transform:rotate(20deg)"></span></a></li>
<li title="Open Settings"><a href="#" class="btn topbar-nav-item" data-toggle="modal" data-target="#settings-dialog"><span class="glyphicon glyphicon-cog"></span></a></li>
<li title="Open Help"><a href="#" class="btn topbar-nav-item" data-toggle="modal" data-target="#help-dialog"><span class="glyphicon glyphicon-question-sign"></span></a></li>
<li title="Open Errors">
<a href="#" class="btn topbar-nav-item" data-toggle="modal" data-target="#logs-dialog">
<span class="glyphicon glyphicon-alert"> </span>
<span id="log-count" class="badge" data-bind="visible: hasLogs, text: logCount"></span>
</a>
</li>
</ul>
</div>
<div id="navigation-header">
<div class="left">
<span class="glyphicon glyphicon-chevron-left" style="display: none"></span>
<span class="text" style="display: none"></span>
</div>
<div class="center">
<span class="text" style="display: none"></span>
</div>
<div class="right">
<span class="text" style="display: none"></span>
<span class="glyphicon glyphicon-chevron-right" style="display: none"></span>
</div>
</div>
</div>
</div>
<!-- Center Pane -->
<div id="center-pane-wrapper">
<div class="container-fluid" id="content">
<div id="panorama"></div>
<div class="widget-map">
<label id="widget-minimap-caption" style="display: none;">Satellit</label>
<div id="map"></div>
</div>
</div>
</div>
<!-- /#center-pane-wrapper -->
<div id="bottombar-wrapper" class="collapsed">
<div title="Open Timeline" href="#" id="bottombar-expander" onclick="$('#bottombar-wrapper').removeClass('collapsed'); $('#bottombar-expander').hide()"><span class="glyphicon glyphicon-menu-up fill"></span></div>
<div id="bottombar">
<a title="Close Timeline" href="#" id="bottombar-collapser" onclick="$('#bottombar-wrapper').addClass('collapsed'); $('#bottombar-expander').show()"><span class="glyphicon glyphicon-menu-down"></span></a>
<div id="timeline"></div>
</div>
</div>
</div>
<!-- /#right-pane -->
</div>
<!-- /#right-pane-wrapper -->
<!-- #spatial-group-editor -->
<div id="spatial-group-editor" class="modal fade" role="dialog" tabindex="-1" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<button type="button" class="help" data-toggle="modal" data-target="#help-dialog">?</button>
<h3 id="addDialogLabel">Timepoint Tour Editor</h3>
</div>
<div class="modal-body" style="overflow-y: unset">
<!-- style required for datetime widget to be properly displayed -->
<form class="form-horizontal" style="width: 100%" data-bind="with: $root.editable.spatialGroup">
<div class="control-group" style="width: 100%">
<label class="control-label" for="spatial-group-name">Name</label>
<input class="form-control" data-bind="value: name" type="text" id="spatial-group-name" placeholder="Group name">
</div>
<div class="control-group" style="width: 100%">
<label class="control-label" for="timeslot" title="The time the panoramas were shot. This determines the position on the timeline.">Timeslot</label>
<div class="controls">
<div class='input-group date' id='timeslot' data-bind="dateTimePicker: timeslot" data-target-input="nearest">
<input type='text' class="form-control datetimepicker-input" data-target="#timeslot" />
<span class="input-group-addon" data-target="#timeslot" data-toggle="datetimepicker">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
</div>
<div class="control-group" style="width: 100%">
<label class="control-label" for="spatial-group-superGroup" title="A time travel tour that aggregates several timepoint tours">Super tour</label>
<select class="form-control" id="spatial-group-superGroup" data-live-search="true" data-show-subtext="true" name="superGroup" placeholder="Select a super tour ..."
data-bind="options: $root.temporalGroups, optionsCaption: 'Select a super tour ...', optionsText: g => {return g.name;}, value: superGroup"></select>
</div>
<h4 class="collapser collapsed" data-toggle="collapse" data-target="#advanced-settings-spatial-group">
<small>
<span class="glyphicon glyphicon-chevron-right"></span>
<span class="glyphicon glyphicon-chevron-down"></span>
Advanced settings
</small>
</h4>
<div class="collapse" id="advanced-settings-spatial-group">
<div class="control-group" style="width: 100%">
<label class="control-label" for="spatial-group-type" title="The type of tour determines which type of vertices can be placed in it">Type</label>
<select class="form-control" id="spatial-group-type" data-live-search="true" data-show-subtext="true" name="type"
data-bind="options: $root.spatialGroupTypes, optionsText: t => {return t;}, value: type"></select>
</div>
<div class="control-group" style="width: 100%">
<label class="control-label" for="spatial-group-id" title="Unique identifier used to reference this tour">Identifier</label>
<input class="form-control" data-bind="value: id" type="text" id="spatial-group-id" placeholder="<Automatically generate>">
</div>
<div class="control-group" style="width: 100%">
<label class="control-label" for="spatial-group-description" title="[Optional]">Description</label>
<input class="form-control" data-bind="value: description" type="text" id="spatial-group-description" placeholder="Group description">
</div>
<div class="control-group" style="width: 100%">
<label class="control-label" for="spatial-group-path" title="[Optional] Specify the folder containing the images. Use slashes (/) to separate folders. Each vertex in the tour will store the path to the image relative to the folder specified here. Note: You cannot specify an absolute path here. The specified path is always relative to the folder you imported in the beginning.">Path</label>
<div class="controls">
<div class='input-group'>
<input class="form-control" data-bind="value: path" type="text" id="spatial-group-path" placeholder="Folder containing images">
<div class="input-group-addon" data-bind="click: () => $root.selectPath()" id="spatial-group-path-selector" style="cursor:pointer">
<span class="glyphicon glyphicon-folder-open"></span>
</div>
</div>
</div>
<div class="invalid-input" data-bind="visible: $root.errors.path() && $root.errors.path() != '', text: $root.errors.path">
</div>
</div>
<div class="control-group" style="width: 100%">
<label class="control-label" for="background" title="[Optional] The image displayed on the map behind the points and edges forming this timepoint tour">Background</label>
<select class="form-control" id="background" data-live-search="true" data-show-subtext="true" name="background" placeholder="Select a background ..."
data-bind="options: $root.backgrounds, optionsCaption: 'Select a background ...', optionsText: g => {return g.label;}, value: background"></select>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button data-bind="click: createSpatialGroup, enable: canCreateSpatialGroup" class="btn btn-primary" data-dismiss="modal">Create</button>
</div>
</div>
</div>
</div>
<!-- /#spatial-group-editor -->
<!-- #temporal-group-editor -->
<div id="temporal-group-editor" class="modal fade" role="dialog" tabindex="-1" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<button type="button" class="help" data-toggle="modal" data-target="#help-dialog">?</button>
<h3 id="addDialogLabel">Time Travel Tour Editor</h3>
</div>
<div class="modal-body">
<form class="form-horizontal" data-bind="with: editable.temporalGroup">
<div class="control-group" style="width: 100%">
<label class="control-label" for="temporal-group-name">Name</label>
<input class="form-control" data-bind="value: name" type="text" id="temporal-group-name" placeholder="Group name">
</div>
<div class="control-group" style="width: 100%">
<label class="control-label" for="autoConnectColocated">Panorama linking</label>
<div class="input-group">
<div class="input-group-addon">
<input data-bind="checked: autoConnectColocated" type="checkbox" id="autoConnectColocated">
</div>
<div class="input-group-addon">
<label for="autoConnectColocate" title="Enables tolerance regarding the position of panoramas. If two panorams are not more than radius apart they are treated as shot at the same location. Then switching between them by using the timeline is possible.">Link panoramas in time within</label>
</div>
<input type="number" class="form-control" id="colocatedRadius" data-bind="value: colocatedRadius, enable: autoConnectColocated">
<div class="input-group-addon">
<label for="colocatedRadius">meter(s)</label>
</div>
</div>
</div>
<h4 class="collapser collapsed" data-toggle="collapse" data-target="#advanced-settings-temporal-group">
<small>
<span class="glyphicon glyphicon-chevron-right"></span>
<span class="glyphicon glyphicon-chevron-down"></span>
Advanced settings
</small>
</h4>
<div class="collapse" id="advanced-settings-temporal-group">
<div class="control-group" style="width: 100%">
<label class="control-label" for="temporal-group-type" title="The type of tour determines how the selection of subgroups is handled">Type</label>
<select class="form-control" id="type" data-live-search="true" data-show-subtext="true" name="type"
data-bind="options: $root.temporalGroupTypes, optionsText: t => {return t;}, value: type"></select>
</div>
<div class="control-group" style="width: 100%">
<label class="control-label" for="temporal-group-id" title="Unique identifier used to reference this tour">Identifier</label>
<input class="form-control" data-bind="value: id" type="text" id="temporal-group-id" placeholder="<Automatically generate>">
</div>
<div class="control-group" style="width: 100%">
<label class="control-label" for="temporal-group-description" title="[Optional]">Description</label>
<input class="form-control" data-bind="value: description" type="text" id="temporal-group-description" placeholder="Group description">
</div>
<div class="control-group" style="width: 100%">
<label class="control-label" for="temporal-group-superGroup" title="[Optional] The new tour will be a child of the selected one.">Super tour</label>
<select class="form-control" id="temporal-group-superGroup" data-live-search="true" data-show-subtext="true" name="superGroup" placeholder="Select a super tour ..."
data-bind="options: $root.temporalGroups, optionsCaption: 'Select a super tour ...', optionsText: g => {return g.name;}, value: superGroup"></select>
</div>
<div class="control-group" style="width: 100%">
<label for="multiselect">Selection options</label>
<div class="input-group">
<input data-bind="checked: multiselect" type="checkbox" id="multiselect" />
<label for="multiselect" title="If unchecked, selecting a timepoint tour leads to deselecting all other timepoint tours that are direct children of the same time travel tour.">Enable multiselect</label>
</div>
<div class="input-group">
<input class="custom-control-input" data-bind="checked: exclusiveTemporalSubgroups" type="checkbox" id="exclusiveTemporalSubgroups" />
<label class="custom-control-label" for="exclusiveTemporalSubgroups" title="If checked, selecting a timepoint tour in one temporal subgroup will deselect all timepoint tours in all other temporal subgroups.">Enable exclusiveness of subgroups</label>
</div>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button data-bind="click: createTemporalGroup, enable: canCreateTemporalGroup" class="btn btn-primary" data-dismiss="modal">Create</button>
</div>
</div>
</div>
</div>
<!-- /#temporal-group-editor -->
<!-- #select-directory-dialog -->
<div id="select-directory-dialog" class="modal fade" role="dialog" tabindex="-1" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div id="select-directory-dialog-header" class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<button type="button" class="help" data-toggle="modal" data-target="#help-dialog">?</button>
<h3 data-bind="visible: workspace">Select project directory</h3>
<h3 data-bind="visible: !workspace">Select a directory</h3>
</div>
<div class="modal-body">
<div>
<section id="workspace-droparea">
<div dropzone="" webkitdropzone="copy file:image/png file:image/gif file:image/jpeg file:image/webp file:image/avif file:application/json" class="centerall">
Drop directory here
</div>
</section>
</div>
<div class="btn-center-spaced">
<label class="btn btn-primary" id="workspace-directory-selector">
Open native file dialog
</label>
</div>
</div>
</div>
</div>
</div>
<!-- /#select-directory-dialog -->
<!-- #webkit-select-workspace-dialog -->
<div id="webkit-select-workspace-dialog" class="modal fade" role="dialog" tabindex="-1" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div id="webkit-select-workspace-dialog-header" class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<button type="button" class="help" data-toggle="modal" data-target="#help-dialog">?</button>
<h3>Select project directory</h3>
</div>
<div class="modal-body">
<div data-bind="visible: allowsDrop">
<section id="webkit-workspace-droparea">
<div dropzone="" webkitdropzone="copy file:image/png file:image/gif file:image/jpeg file:image/webp file:image/avif file:application/json" class="centerall">
Drop directory here
</div>
</section>
</div>
<div data-bind="visible: allowsDirectorySelect">
<label class="btn btn-primary btn-center-spaced" for="webkit-workspace-directory-selector">
<input id="webkit-workspace-directory-selector" type="file" style="display: none;" multiple directory webkitdirectory="">
Open native file dialog
</label>
<p></p>
</div>
<div data-bind="visible: !allowsDrop && !allowsDirectorySelect" style="display: none;">
<label class="btn btn-primary btn-center-spaced" for="webkit-workspace-files-selector">
<input id="webkit-workspace-files-selector" type="file" multiple style="display: none;">
Select files
</label>
<p>Select all files in project directory</p>
</div>
</div>
</div>
</div>
</div>
<!-- /#webkit-select-workspace-dialog -->
<!-- #webkit-access-dialog -->
<div id="webkit-access-dialog" class="modal fade" role="dialog" tabindex="-1" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div id="webkit-access-dialog-header" class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<button type="button" class="help" data-toggle="modal" data-target="#help-dialog">?</button>
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#webkit-access-disk-tab">Disk</a></li>
<li><a data-toggle="tab" href="#webkit-access-browser-tab" data-bind="css:{'not-active': !hasEntries()}">Browser</a></li>
</ul>
</div>
<div class="modal-body">
<div class="tab-content">
<div id="webkit-access-disk-tab" class="tab-pane fade in active">
<div data-bind="if: name" class="form">
<label for="webkit-access-name">
Please provide the following file:
</label>
<span data-bind="text: path"></span>
<div class="input-group">
<input id="webkit-access-name" class="form-control" data-bind="value: name" readonly="readonly" type="text">
<span class="input-group-btn">
<button class="btn clipboard" type="button" data-clipboard-target="#webkit-access-name">
<img src="assets/images/clippy.svg" alt="Copy to clipboard" width="13" style="margin-top: -3px; position: relative; top:3px;">
</button>
</span>
</div>
</div>
<div data-bind="ifnot: name">
<div data-bind="visible: !allowsFiles() && !multi()">
Select a directory.
</div>
<div data-bind="visible: !allowsFiles() && multi()">
Select one or more directories.
</div>
<div data-bind="visible: !allowsFolders() && !multi()">
Select a file.
</div>
<div data-bind="visible: !allowsFolders() && multi()">
Select one or more files.
</div>
<div data-bind="visible: allowsFiles() && allowsFolders() && !multi()">
Select a file or directory.
</div>
<div data-bind="visible: allowsFiles() && allowsFolders() && multi()">
Select one or more files or directories.
</div>
</div>
<div data-bind="visible: allowsDrop && !name()">
<section id="webkit-droparea">
<div dropzone="" webkitdropzone="copy file:image/png file:image/gif file:image/jpeg file:image/webp file:image/avif file:application/json" class="centerall">
Drop here
</div>
</section>
</div>
<div data-bind="visible: allowsDirectorySelect && allowsFolders()">
<label class="btn btn-primary btn-center-spaced" for="webkit-directory-selector">
<input id="webkit-directory-selector" type="file" style="display: none;" multiple directory webkitdirectory="">
Select directory
</label>
</div>
<div data-bind="visible: allowsMultiFileSelect && multi() && allowsFiles()">
<label class="btn btn-primary btn-center-spaced" for="webkit-files-selector">
<input id="webkit-files-selector" type="file" multiple style="display: none;">
Select files
</label>
</div>
<div data-bind="visible: !multi() && allowsFiles()">
<label class="btn btn-primary btn-center-spaced" for="webkit-file-selector">
<input id="webkit-file-selector" type="file" style="display: none;">
Select file
</label>
</div>
</div>
<!-- /#webkit-access-disk-tab -->
<div id="webkit-access-browser-tab" class="tab-pane fade">
<div id="webkit-access-browser-tab-jstree"></div>
<button data-bind="click: confirmSelection, enable: hasSelections" class="btn btn-primary" data-dismiss="modal">Confirm</button>
</div>
<!-- /#webkit-access-browser-tab -->
</div>
<!-- /.tab-content -->
</div>
</div>
</div>
</div>
<!-- /#webkit-access-dialog -->
<!-- #settings-dialog -->
<div id="settings-dialog" class="modal fade" role="dialog" tabindex="-1" aria-hidden="true" style="display: none;">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div id="settings-dialog-header" class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<button type="button" class="help" data-toggle="modal" data-target="#help-dialog">?</button>
<h4>Settings</h4>
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#settings-file-tab">File</a></li>
<li><a data-toggle="tab" href="#settings-view-tab">View</a></li>
<li><a data-toggle="tab" href="#settings-advanced-tab">Advanced</a></li>
</ul>
</div>
<div class="modal-body">
<div class="tab-content">
<!-- #settings-file-tab -->
<div id="settings-file-tab" class="tab-pane fade in active">
<div class="form-horizontal">
<div class="container-fluid">
<div class="row">
<div class="col-md-6" data-bind="with: map">
<h4 class="text-center">Import</h4>
<table class="table table-responsiv table-responsive-sm table-sm">
<tbody>
<tr>
<td>
<div>
<button id="switch-workspace" class="btn btn-default" data-toggle="modal" data-target="#settings-dialog">
<span class="glyphicon glyphicon-refresh"></span>
</button>
<label class="control-label" for="switch-workspace">Switch workspace</label>
</div>
</td>
</tr>
<tr>
<td>
<div>
<button id="import-workspace" class="btn btn-default" data-toggle="modal" data-target="#settings-dialog">
<span class="glyphicon glyphicon-import"></span>
</button>
<label class="control-label" for="import-workspace">Import workspace</label>
</div>
</td>
</tr>
<tr>
<td>
<div>
<button id="import-tour" class="btn btn-default" data-toggle="modal" data-target="#settings-dialog">
<span class="glyphicon glyphicon-import"></span>
</button>
<label class="control-label" for="import-tour">Import external tour file</label>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-6" data-bind="with: timeline">
<h4 class="text-center">Export</h4>
<table class="table">
<tbody>
<tr>
<td>
<div>
<button id="backup-tour" class="btn btn-default" data-toggle="modal" data-target="#settings-dialog">
<span class="glyphicon glyphicon-export"></span>
</button>
<label class="control-label" for="export-tour">Save backup copy of tour file</label>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="checkbox">
<label title="Equivalent to clicking the "Set" button next to selected items whenever (de-)selecting one." class="control-label" for="auto-save-selected-items-checkbox">
<input type="checkbox" data-bind="checked: autoSaveSelectedItems" id="auto-save-selected-items-checkbox">
Automatically save selected items
</label>
</div>
<div class="checkbox" data-bind="visible: !platform.isBrowser">
<label title="Load workspace which was open when the program was closed the last time." class="control-label" for="load-recent-workspace-checkbox">
<input type="checkbox" data-bind="checked: loadRecentWorkspace" id="load-recent-workspace-checkbox">
Load recent workspace
</label>
</div>
<div class="control-group" style="width: 100%" data-bind="if: !platform.isBrowser">
<div class="input-group">
<div class="input-group-addon">
<input type="checkbox" data-bind="checked: autoSave" id="autoSave-checkbox">
</div>
<div class="input-group-addon">
<label for="tilePanoramas-checkbox">Save workspace every</label>
</div>
<input class="form-control" type="number" min="1" max="60" data-bind="value: autoSaveInterval, enable: autoSave" id="autoSaveInterval-input">
<div class="input-group-addon">
<label for="autoSaveInterval-input">minutes</label>
</div>
</div>
</div>
<div class="control-group" style="margin-top: 2rem;">
<span>Current workspace: </span><span class="workspace-path">not set</span>
</div>
</div>
</div>
</div>
<!-- /#settings-file-tab -->
<!-- #settings-view-tab -->
<div id="settings-view-tab" class="tab-pane fade">
<div class="form-horizontal">
<div>
<div class="checkbox" data-bind="visible: platform.isBrowser">
<label class="control-label" for="fullscreen-checkbox">
<input type="checkbox" data-bind="checked: fullscreen" id="fullscreen-checkbox">
Fullscreen
</label>
</div>
<div class="checkbox">
<label class="control-label" for="aggregateItems-checkbox">
<input type="checkbox" data-bind="checked: aggregateItems" id="aggregateItems-checkbox">
Aggregate a stack of items in the timeline into one (range item).
</label>
</div>
<div class="checkbox">
<label title="If a new panorama is added, display it." class="control-label" for="auto-display-panorama-checkbox">
<input type="checkbox" data-bind="checked: autoDisplayPanorama" id="auto-display-panorama-checkbox">
Automatically load panorama when adding a file
</label>
</div>
<div class="checkbox">
<label title="Selecting a timepoint tour on the sidebar has the same effect as clicking the corresponding item in the timeline." class="control-label" for="show-group-on-editor-selection-checkbox">
<input type="checkbox" data-bind="checked: showGroupOnEditorSelection" id="show-group-on-editor-selection-checkbox">
Show tour on map when selecting it on the sidebar
</label>
</div>
<div class="checkbox">
<label class="control-label" for="autosave-startup-view-checkbox">
<input type="checkbox" data-bind="checked: autoSaveStartupView" id="autosave-startup-view-checkbox">
Update all initial view parameters when saving
</label>
</div>
<div class="control-group" style="width: 100%;padding-top: 14px;" data-bind="visible: platform.hasGPSSensor">
<label class="control-label" for="enableGPS-checkbox">GPS Sensor</label>
<div class="checkbox" style="padding-bottom: 7px;padding-top: 0;">
<label class="control-label" for="enableGPS-checkbox">
<input type="checkbox" data-bind="checked: enableGPS" id="enableGPS-checkbox">
Load panoramas based on location
</label>
</div>
<div class="input-group">
<div class="input-group-addon">
<label for="requiredGPSAccuracy">
Require an accuracy below
</label>
</div>
<input type="number" class="form-control" id="requiredGPSAccuracy" data-bind="value: requiredGPSAccuracy, enable: enableGPS">
<div class="input-group-addon">
<label for="requiredGPSAccuracy">
meter(s)
</label>
<span data-bind="text: '(current: ' + currentGPSAccuracy().toLocaleString(undefined, {maximumFractionDigits: 2}) + ')', visible: currentGPSAccuracy"></span>
</div>
</div>
</div>
</div>
<hr>
<h4>Automatically rotate panorama</h4>
<form class="inline-list-stretched" style="margin-bottom: 1rem !important;">
<button id="start-auto-rotate-button" class="btn btn-primary" data-dismiss="modal">Start</button>
<button id="stop-auto-rotate-button" class="btn btn-primary" data-dismiss="modal">Stop</button>
<div class="input-group">
<div class="input-group-addon">
<input data-bind="checked: autoRotateInactivityEnabled" type="checkbox" id="autoRotateInactivityEnabled">
</div>
<div class="input-group-addon">
<label for="autoRotateInactivityEnabled" title="If there is no user interaction with the panorama, the view begins to turn automatically after the specified time.">Always start after</label>
</div>
</div>
</form>
<div class="input-group inline-list-stretched" style="margin-bottom: 1rem !important;">
<input type="range" class="form-range form-control" value="1" min="1" max="30" data-bind="value: autoRotateInactivityDelay, enable: autoRotateInactivityEnabled" style="margin-right: 2rem;">
<input type="number" class="form-control" min="1" step="1" data-bind="value: autoRotateInactivityDelay, enable: autoRotateInactivityEnabled">
<div class="input-group-addon" style="min-width: 11rem;">
<label>s of inactivity</label>
</div>
</div>
<div class="inline-list-stretched" style="margin-bottom: 2rem !important;">
<label class="control-label">Speed</label>
<input type="range" class="form-range" min="-20" max="20" step="0.25" data-bind="value: autoRotateSpeed" style="max-width:70%">
</div>
<h4>Cycle through panoramas</h4>
<form class="inline-list-stretched" style="margin-bottom: 1rem !important;">
<button id="start-cycle-timepoints-button" class="btn btn-primary" data-dismiss="modal">Start</button>
<button id="stop-cycle-timepoints-button" class="btn btn-primary" data-dismiss="modal">Stop</button>
<div class="checkbox">
<label title="Whenever the panorama starts or stops to automatically rotate, the loading of panorams is started or stopped " class="control-label" for="cycle-timepoints-bind-to-auto-rotate">
<input type="checkbox" data-bind="checked: cycleTimepointsBindToAutoRotate" id="cycle-timepoints-bind-to-auto-rotate">
Start and stop with auto rotate
</label>
</div>
</form>
<div class="input-group inline-list-stretched" style="margin-bottom: 1rem !important;">
<input type="range" class="form-range form-control" value="1" min="1" max="10" data-bind="value: cycleTimepointsFadeDuration" style="margin-right: 2rem;">
<input type="number" class="form-control" min="1" step="1" data-bind="value: cycleTimepointsFadeDuration">
<div class="input-group-addon" style="min-width: 9rem;">
<label>s blending</label>
</div>
</div>
<div class="input-group inline-list-stretched" style="margin-bottom: 2rem !important;">
<input type="range" class="form-range form-control" value="1" min="1" max="10" data-bind="value: cycleTimepointsDelay" style="margin-right: 2rem;">
<input type="number" class="form-control" min="1" step="1" data-bind="value: cycleTimepointsDelay">
<div class="input-group-addon" style="min-width: 9rem;">
<label>s waiting</label>
</div>
</div>
<hr>
<div class="container-fluid">
<span>Pan and zoom and then click to save the following values.</span>
<div class="row">
<div class="col-md-6" data-bind="with: map">
<h4 class="text-center">Map</h4>
<table class="table table-responsiv table-responsive-sm table-sm">
<tbody>
<tr>
<th scope="row">Initial center</th>
<td>
<button class="btn btn-primary" id="set-center-map-settings-button" data-bind="enable: !$root.autoSaveStartupView()">Set</button>
<button class="btn btn-primary" id="unset-center-map-settings-button" data-bind="enable: !!center() && !$root.autoSaveStartupView()">Unset</button>
</td>
</tr>
<tr>
<th scope="row">Initial zoom level</th>
<td>
<button class="btn btn-primary" id="set-zoom-map-settings-button" data-bind="enable: !$root.autoSaveStartupView()">Set</button>
<button class="btn btn-primary" id="unset-zoom-map-settings-button" data-bind="enable: !!zoom() && !$root.autoSaveStartupView()">Unset</button>
</td>
</tr>
<tr>
<th scope="row">Farthest zoom level</th>
<td>
<button class="btn btn-primary" id="set-minZoom-map-settings-button">Set</button>
<button class="btn btn-primary" id="unset-minZoom-map-settings-button" data-bind="enable: minZoom">Unset</button>
</td>
</tr>
<tr>
<th scope="row">Closest zoom level</th>
<td>
<button class="btn btn-primary" id="set-maxZoom-map-settings-button">Set</button>
<button class="btn btn-primary" id="unset-maxZoom-map-settings-button" data-bind="enable: maxZoom">Unset</button>
</td>
</tr>
<tr>
<th scope="row">Outer bounds of view</th>
<td>
<button class="btn btn-primary" id="set-maxBounds-map-settings-button">Set</button>
<button class="btn btn-primary" id="unset-maxBounds-map-settings-button" data-bind="enable: maxBounds">Unset</button>
</td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-6" data-bind="with: timeline">
<h4 class="text-center">Timeline</h4>
<table class="table">
<tbody>
<tr>
<th scope="row">Initial start date</th>
<td>
<button class="btn btn-primary" id="set-start-timeline-settings-button" data-bind="enable: !$root.autoSaveStartupView()">Set</button>
<button class="btn btn-primary" id="unset-start-timeline-settings-button" data-bind="enable: !!start() && !$root.autoSaveStartupView()">Unset</button>
</td>
</tr>
<tr>
<th scope="row">Initial end date</th>
<td>
<button class="btn btn-primary" id="set-end-timeline-settings-button" data-bind="enable: !$root.autoSaveStartupView()">Set</button>
<button class="btn btn-primary" id="unset-end-timeline-settings-button" data-bind="enable: !!end() && !$root.autoSaveStartupView()">Unset</button>
</td>
</tr>
<tr>
<th scope="row">Minimum start date</th>
<td>
<button class="btn btn-primary" id="set-min-timeline-settings-button">Set</button>
<button class="btn btn-primary" id="unset-min-timeline-settings-button" data-bind="enable: min">Unset</button>
</td>
</tr>
<tr>
<th scope="row">Maximum end date</th>
<td>
<button class="btn btn-primary" id="set-max-timeline-settings-button">Set</button>
<button class="btn btn-primary" id="unset-max-timeline-settings-button" data-bind="enable: max">Unset</button>
</td>
</tr>
<tr>
<th scope="row">Selected items</th>
<td>
<button class="btn btn-primary" id="set-selections-timeline-settings-button" data-bind="enable: !$root.autoSaveStartupView()">Set</button>
<button class="btn btn-primary" id="unset-selections-timeline-settings-button" data-bind="enable: !!selections() && !$root.autoSaveStartupView() && !$root.autoSaveSelectedItems">Unset</button>
</td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-6" data-bind="with: panorama">
<h4 class="text-center">Panorama</h4>
<table class="table">
<tbody>
<tr>
<th scope="row">Panorama initially displayed</th>
<td>
<button class="btn btn-primary" id="set-scene-panorama-settings-button" data-bind="enable: !$root.autoSaveStartupView()">Set</button>
<button class="btn btn-primary" id="unset-scene-panorama-settings-button" data-bind="enable: !!scene() && !$root.autoSaveStartupView()">Unset</button>
</td>
</tr>
<tr>
<th scope="row">Initial yaw</th>
<td>