-
Notifications
You must be signed in to change notification settings - Fork 25
/
index.html
1026 lines (992 loc) · 42.8 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
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="en">
<head>
<link rel="shortcut icon" href="img/favicon.ico">
<meta charset='utf-8'>
<meta http-equiv="x-ua-compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,height=device-height, user-scalable=no">
<meta name="keywords" content="Online, GPX, GPS, Leaflet, Tracks, Trails, GIS, outdoor">
<meta name="description" content="Online GPX multi-segment track editor for outdoor activities">
<meta http-equiv="Content-Security-Policy" content="
default-src 'self';
style-src 'self' 'unsafe-inline' https://cdn.rawgit.com https://cdnjs.cloudflare.com https://fonts.googleapis.com;
script-src 'self' https://cdn.rawgit.com https://cdnjs.cloudflare.com https://extreme-ip-lookup.com https://www.dropbox.com https://www.google-analytics.com https://www.googletagmanager.com https://maps.googleapis.com;
font-src * data:;
connect-src *;
img-src * data: blob:;
worker-src 'self';
frame-src 'none';
object-src 'none'">
<link rel="manifest" href="./manifest.json">
<title class="appname">WTracks</title>
<link rel="stylesheet" href="css/leaflet.css">
<script defer src="js/jquery.min.js"></script>
<script defer src="js/leaflet.js"></script>
<script defer src="js/leaflet.wmts.js"></script>
<!-- Google Material design fonts -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="css/trumbowyg.min.css">
<script defer src="js/trumbowyg.min.js"></script>
<script defer src="js/Leaflet.Editable.js"></script>
<script defer src="js/Path.Drag.js"></script>
<!-- File upload -->
<script defer src="js/togeojson.js"></script>
<script defer src="js/leaflet.filelayer.js"></script>
<!-- FileSaver -->
<script defer src="js/FileSaver.js"></script>
<!-- Routing Machine -->
<script defer src="js/leaflet-routing-machine.js"></script>
<script defer src="js/lrm-graphhopper.js"></script>
<script defer src="js/L.Routing.OpenRouteService.js"></script>
<!-- Elevation -->
<script defer src="js/d3.v4.min.js"></script>
<link rel="stylesheet" href="css/Leaflet.Elevation-0.0.4-d3v4.css">
<script defer src="js/Leaflet.Elevation-0.0.4-d3v4.js"></script>
<!-- Geo search -->
<link rel="stylesheet" href="css/l.geosearch.css">
<script defer src="js/l.control.geosearch.js"></script>
<script defer src="js/l.geosearch.provider.openstreetmap.js"></script>
<script defer src="js/leaflet.polyprune.js"></script>
<script defer src="js/leaflet.polytrim.js"></script>
<script defer src="js/leaflet.polystats.js"></script>
<!-- sortable lists -->
<script defer src="js/draganddrop.js"></script>
<link rel="stylesheet" href="css/draganddrop.css">
<!-- crypto functions -->
<script defer src="js/encdec.js"></script>
<script defer src="js/pmtiles.js"></script>
<script defer src="js/jscolor.js"></script>
<script id="dropboxjs" data-app-key=""></script>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/dropbox.js/0.10.2/dropbox.min.js"></script>
<link rel="stylesheet" href="css/wtracks.css">
<script defer src="js/config.js"></script>
<script defer src="js/utils.js"></script>
<script defer src="js/no-ie.js"></script>
<script defer src="js/paste-libs.js"></script>
<script defer src="js/wtracks-commons.js"></script>
<script defer src="js/wtracks.js"></script>
</head>
<body>
<div id="menu" class="overlay">
<div class="box-header"><a id="menu-close" href="#" class="close-button">×</a></div>
<ul class="menutab">
<li><a href="#" class="tablinks" id="tabfile">File</a></li>
<li><a href="#" class="tablinks" id="tabsegments">Segments</a></li>
<li><a href="#" class="tablinks" id="tabtools">Tools</a></li>
<li><a href="#" class="tablinks small-menu-link" id="tabsettings">
<span class="hide-on-small-screen">Settings</span>
<i class="material-icons show-on-small-screen">settings</i>
</a></li>
<li><a href="#" class="tablinks small-menu-link" id="tababout">
<span class="hide-on-small-screen">About</span>
<i class="material-icons show-on-small-screen">question_mark</i>
</a></li>
</ul>
<!-- FILE -->
<table id="menufile">
<tr class="nobottomborder">
<td colspan="2">
<div>
<span class="fold fold-file-closed material-icons" id="file-newtrk-closed">keyboard_arrow_right</span>
<span class="fold-file newtrk material-icons">keyboard_arrow_down</span>
<span class="fold fold-link fold-file" id="file-newtrk">New</span>
</div>
</td>
</tr>
<tr class="notopborder fold-file newtrk">
<td>
<button id="track-new" title="Start a new track from scratch">New Track</button>
</td>
<td>
Discard current editor content and start a new track
</td>
</tr>
<tr class="nobottomborder">
<td colspan="2">
<div>
<span class="fold fold-file-closed material-icons" id="file-load-closed">keyboard_arrow_right</span>
<span class="fold-file load material-icons">keyboard_arrow_down</span>
<span class="fold fold-link fold-file" id="file-load">Load</span>
</div>
</td>
</tr>
<tr class="notopborder nobottomborder fold-file load">
<td>
<span>Options</span>
</td>
<td>
<label><input type="checkbox" id="merge">Merge</label>
<span id="mergetxt" class="help-b material-icons" title="Help">help_outline</span>
<p id="mergetxt-help" class="help-p">
Current edited track will not be discarded, it will be extended with the loaded one.
</p>
<br>
<label><input type="checkbox" id="joinonload">Join segments</label>
<span id="joinonloadtxt" class="help-b material-icons" title="Help">help_outline</span>
<p id="joinonloadtxt-help" class="help-p">
If loaded track contains multiple segments, they will automatically be joined.
</p>
</td>
</tr>
<tr class="nobottomborder notopborder fold-file load">
<td>
</td>
<td>
File type:
<select id="track-ext">
<option value="auto">Auto</option>
<option value="gpx">GPX</option>
<option value="kml">KML</option>
<option value="geojson">GeoJson</option>
</select>
<span id="filetypetxt" class="help-b material-icons" title="Help">help_outline</span>
<p id="filetypetxt-help" class="help-p">
If "Auto" is selected, the type of the file is selected based on the file extension.
</p>
</td>
</tr>
<tr class="nobottomborder notopborder fold-file load">
<td>
<label id="track-upload-label">
<input type="file" name="track" id="track-upload" multiple="multiple" accept=".gpx,.kml,.geojson">
<span>File</span>
</label>
</td>
<td>
Open a file from your device<br>
</td>
</tr>
<tr class="nobottomborder notopborder fold-file load">
<td>
<button id="track-get" title="Load a file from the internet">
Get from:
</button>
</td>
<td>
<input id="track-get-url" placeholder="https://... (track URL)" type="url"><br>
<label><input id="noproxy" type="checkbox"> No proxy </label>
<span id="noproxytxt" class="help-b material-icons" title="Help">help_outline</span>
<p id="noproxytxt-help" class="help-p">
Load without going through a CORS proxy. Check if target server accepts cross-origin requests, and if you want to use your browser session to fetch the file.
</p>
</td>
</tr>
<tr class="notopborder fold-file load">
<td>
<button id="dropbox-chooser" title="Load a track from your Dropbox">
<span class="dropbox-logo"></span>
Dropbox
</button>
</td>
<td>
Load from your Dropbox
</td>
</tr>
<tr class="nobottomborder">
<td colspan="2">
<div>
<span class="fold fold-file-closed material-icons" id="file-save-closed">keyboard_arrow_right</span>
<span class="fold-file save material-icons">keyboard_arrow_down</span>
<span class="fold fold-link fold-file" id="file-save">Save</span>
</div>
</td>
</tr>
<tr class="notopborder nobottomborder fold-file save">
<td>
<button id="track-download" title="Download as a GPX file">
As File
</button>
<br>
<button id="dropbox-saver" title="Save track in your Dropbox">
<span class="dropbox-logo"></span>
Dropbox
</button>
</td>
<td>
Download as a GPX file<br>
<label><input type="checkbox" id="as-route">As route</label>
<span id="routetxt" class="help-b material-icons" title="Help">help_outline</span>
<p id="routetxt-help" class="help-p">
Check to save the track as a GPX route, instead of a GPX track segment.
</p>
<br>
<!-- Don't know what this is useful for...
<label><input type="checkbox" id="nometadata">Without metadata</label>
<span id="nometadatatxt" class="help-b material-icons" title="Help">help_outline</span>
<p id="nometadatatxt-help" class="help-p">
Check to save without GPX metadata.
</p>
<br>
-->
</td>
</tr>
<tr class="nobottomborder">
<td colspan="2">
<div>
<span class="fold fold-file-closed material-icons" id="file-share-closed">keyboard_arrow_right</span>
<span class="fold-file share material-icons">keyboard_arrow_down</span>
<span class="fold fold-link fold-file" id="file-share">Share</span>
</div>
</td>
</tr>
<tr class="notopborder nobottomborder fold-file share">
<td>
<button id="track-share" title="Share through a link">
Share...
</button>
</td>
<td>
track using
<select id="share-libs"></select>
<span id="sharetxt" class="help-b material-icons" title="Help">help_outline</span>
<br>
<span>Service is <span id="share-status"></span></span>
</td>
</tr>
<tr class="notopborder nobottomborder fold-file share share-props">
<td class="help-p sharetxt-help">Hosted by:</td>
<td class="help-p sharetxt-help" id="share-web"></td>
</tr>
<tr class="notopborder nobottomborder fold-file share share-props">
<td class="help-p sharetxt-help">Max file size:</td>
<td class="help-p sharetxt-help" id="share-max-size"></td>
</tr>
<tr class="notopborder nobottomborder fold-file share share-props">
<td class="help-p sharetxt-help">Max storage time:</td>
<td class="help-p sharetxt-help" id="share-max-time"></td>
</tr>
<tr class="notopborder fold-file share share-props">
<td class="help-p sharetxt-help">Max downloads:</td>
<td class="help-p sharetxt-help" id="share-max-downloads"></td>
</tr>
</table>
<!-- SEGMENTS -->
<table id="menusegments">
<tr class="nobottomborder">
<td>
<span class="if-segments">Edit your track's segments</span>
<span class="no-segments">You did not create any segment yet</span>
<span id="segsedittxt" class="help-b material-icons" title="Help">help_outline</span>
<p id="segsedittxt-help" class="help-p">
Drag and drop to reorder segments. Click on name to rename. Click on color to set color. Click on trash to delete.
</p>
</td>
</tr>
<tr class="notopborder">
<td id="seg-editor-list">
</td>
</tr>
</table>
<!-- TOOLS -->
<table id="menutools">
<tr>
<td colspan="2">
<input type="checkbox" id="allsegments" class="no-trim">
<label for="allsegments">Apply (*) to all track segments</label>
<span id="allsegmentstxt" class="help-b material-icons" title="Help">help_outline</span><br>
<p id="allsegmentstxt-help" class="help-p">
Check to apply the tools below to all track segments instead of just the active one. Ignore if your track only has one segment.
</p>
</td>
</tr>
<tr>
<td>
<button id="compress" class="no-trim">Compress*</button>
</td>
<td>
Discard track points within a <input id="prune-dist" type="number" min="0" required>
<span class="distUnit"></span>s band<br>
Keep points if separated by more than
<span id="compresstxt" class="help-b material-icons" title="Help">help_outline</span>
<br>
<input id="prune-time-opt" type="checkbox"><input id="prune-max-time" type="number" min="0"><label for="prune-time-opt">seconds</label>
<input id="prune-dist-opt" type="checkbox"><input id="prune-max-dist" type="number" min="0"><label for="prune-dist-opt"><span class="distUnit"></span>s</label>
<br>
<p id="compresstxt-help" class="help-p">
Reduces track size by discarding points which do not significantly change the track shape.
</p>
</td>
</tr>
<tr>
<td>
<button id="smooth" class="no-trim isdisabled">Smooth*</button>
</td>
<td>
Smooth altitude data<br>
<label>Intensity: <input id="smooth-level" type="range" step="5" min="1" max="61"></label>
<span id="smoothtxt" class="help-b material-icons" title="Help">help_outline</span>
<p id="smoothtxt-help" class="help-p">
Update track's altitude data to remove noise.
Smoothing intensity defines the number of rounding iterations.
The higher the level, the more computation time is needed.
</p>
</td>
</tr>
<tr>
<td>
<button id="elevate" class="no-trim isdisabled">Elevate*</button>
</td>
<td>
Add altitude information
<span id="elevatetxt" class="help-b material-icons" title="Help">help_outline</span>
<p id="elevatetxt-help" class="help-p">
Uses external web service to get elevation of track points.
<span id="elevatetxt-help-enable"></span>
</p>
</td>
</tr>
<tr>
<td>
<button id="save-time" class="no-trim">Save Time*</button>
</td>
<td>
From
<span id="savetimingtxt" class="help-b material-icons" title="Help">help_outline</span>
<input id="save-time-from" type="datetime-local" size="16" step="1"><br>
<select id="save-time-profile"></select>
<input id="save-time-to" type="datetime-local" size="16" step="1">
<p id="savetimingtxt-help" class="help-p">
Check to save in the GPX the timings computed by WTracks.
It will override any previous GPX timing.
</p>
</td>
</tr>
<tr>
<td>
<button id="shift-time" class="no-trim">Shift Time*</button>
</td>
<td>
By
<input id="shift-time-by" type="number">
<select id="shift-time-unit">
<option value="day">Day(s)</option>
<option value="hour">Hour(s)</option>
<option value="minute">Minute(s)</option>
<option value="second">Second(s)</option>
</select>
<span id="shifttimingtxt" class="help-b material-icons" title="Help">help_outline</span>
<p id="shifttimingtxt-help" class="help-p">
Shifts all track points' recorded time.
</p>
</td>
</tr>
<tr>
<td>
<button id="cleanup" class="no-trim">Clean up*</button>
<button id="fillup" class="no-trim">Fill up*</button>
</td>
<td>
Delete or interpolate track data:
<span id="cleanuptxt" class="help-b material-icons" title="Help">help_outline</span>
<br>
<label><input id="cleanupalt" type="checkbox"> Altitude</label>
<label><input id="cleanuptime" type="checkbox"> Time</label>
<p id="cleanuptxt-help" class="help-p">
Clean up: Deletes elevation and/or GPS-recorded time data on each track point.<br>
Fill up: Adds interpolated elevation and/or time on track points where this data is missing.
</p>
</td>
</tr>
<tr>
<td>
<button id="revert" class="no-trim">Revert*</button>
</td>
<td>
Revert track direction
<span id="reverttxt" class="help-b material-icons" title="Help">help_outline</span>
<p id="reverttxt-help" class="help-p">
Inverts all track points so that start of the track becomes the end.
</p>
</td>
</tr>
<tr>
<td>
<select id="trim-type">
<option>Trim start</option>
<option>Trim end</option>
</select>
</td>
<td>
<input type="range" id="trim-range" min="0" step="1" value="0"> <span id="trim-txt"></span>
<span id="trimtxt" class="help-b material-icons" title="Help">help_outline</span>
<p id="trimtxt-help" class="help-p">
Move cursor to delete points from the start or the end of the track.
</p>
</td>
</tr>
</table>
<!-- SETTINGS -->
<table id="menusettings">
<tr class="nobottomborder">
<td colspan="2">
<div>
<span class="fold fold-settings-closed material-icons" id="settings-savstg-closed">keyboard_arrow_right</span>
<span class="fold-settings savstg material-icons">keyboard_arrow_down</span>
<span class="fold fold-link fold-settings" id="settings-savstg">Remember me</span>
<span id="cfgsavetxt" class="help-b material-icons" title="Help">help_outline</span>
<p id="cfgsavetxt-help" class="help-p">
Your WTracks editor status will be saved continuously in your browser local storage,
so that when you close and reopen it later it will restore the same content and settings.
</p>
</div>
</td>
</tr>
<tr class="notopborder fold-settings savstg">
<td>
</td>
<td>
<label>
<input id="cfgsave" class="no-trim" type="checkbox">
Locally save editor's state between sessions
</label>
<br>
Privacy warning: state is shared with all users of this browser profile
<br>
You can also export/import settings to/from files:
<br>
<button id="save-state-file" class="state-file">Export</button>
<label id="state-load-label" class="state-file">
<input type="file" name="track" id="load-state-file" class="state-file">
<span>Import</span>
</label>
</td>
</tr>
<tr class="nobottomborder">
<td colspan="2">
<div>
<span class="fold fold-settings-closed material-icons" id="settings-trkstg-closed">keyboard_arrow_right</span>
<span class="fold-settings trkstg material-icons">keyboard_arrow_down</span>
<span class="fold fold-link fold-settings" id="settings-trkstg">Display options</span>
<span id="trkopts" class="help-b material-icons" title="Help">help_outline</span>
<p id="trkopts-help" class="help-p">
Configure track colors and other display options.
</p>
</div>
</td>
</tr>
<tr class="notopborder nobottomborder fold-settings trkstg">
<td>
</td>
<td>
<div>
<span class="setting-name">Segment Type:</span>
<label><input name="track-type" type="radio" value="trk" checked="checked"> Edited</label>
<label><input name="track-type" type="radio" value="ovl"> Others</label>
</div>
<div>
<span class="setting-name">Default color:</span>
<button id="track-color-picker" class='material-icons symbol setting-value jscolor {"valueElement":"track-color", "hash":true, "zIndex":10001}'>
colorize
</button>
<input id="track-color" class="hidden">
</div>
<div>
<span class="setting-name">Width:</span>
<input type="range" min="0" max="10" id="track-weight" class="setting-value">
<span id="track-weight-v" class="setting-value"></span>
</div>
<div>
<span class="setting-name hide-on-small-screen"> </span>
<button id="track-resetcolorweight" class="setting-value">Reset</button>
</div>
</tr>
<tr class="notopborder nobottomborder fold-settings trkstg">
<td>
</td>
<td>
<input id="fwdGuide" class="no-trim" type="checkbox">
<label for="fwdGuide">Show forward line guide</label>
<span id="fwdGuidehlp" class="help-b material-icons" title="Help">help_outline</span>
<p id="fwdGuidehlp-help" class="help-p">
When checked, a dashed line is displayed in edit mode to guide forward track extension.
</p>
</td>
</tr>
<tr class="notopborder nobottomborder fold-settings trkstg">
<td>
</td>
<td>
<input id="wptLabel" class="no-trim" type="checkbox">
<label for="wptLabel">Always display waypoint labels</label>
<span id="wptLabelhlp" class="help-b material-icons" title="Help">help_outline</span>
<p id="wptLabelhlp-help" class="help-p">
When unchecked, waypoint title is only displayed when
the mouse is over the waypoint.
</p>
</td>
</tr>
<tr class="notopborder nobottomborder fold-settings trkstg">
<td>
</td>
<td>
<input id="extMarkers" class="no-trim" type="checkbox">
<label for="extMarkers">Show start/end markers</label>
<span id="extMarkershlp" class="help-b material-icons" title="Help">help_outline</span>
<p id="extMarkershlp-help" class="help-p">
When checked, a marker will be shown at start and end of current track segment.
</p>
</td>
</tr>
<tr class="notopborder nobottomborder fold-settings trkstg">
<td>
</td>
<td>
<input id="autoGrayBaseLayer" class="no-trim" type="checkbox">
<label for="autoGrayBaseLayer">Grayscale base-layer map</label>
<span id="autoGrayBaseLayerhlp" class="help-b material-icons" title="Help">help_outline</span>
<p id="autoGrayBaseLayerhlp-help" class="help-p">
When checked and an overlay is enabled, base layer is displayed in gray. This is useful with slope overlays.
</p>
</td>
</tr>
<tr class="notopborder fold-settings trkstg">
<td>
</td>
<td>
<input id="noMixOverlays" class="no-trim" type="checkbox">
<label for="noMixOverlays">Do not mix overlays</label>
<span id="noMixOverlayshlp" class="help-b material-icons" title="Help">help_outline</span>
<p id="noMixOverlayshlp-help" class="help-p">
By default, when multiple overlays are active, they are mixed to make sure they are all visible. When this option is checked, overlays are drawn independently on top of each other. Bottom overlays may then be hidden by upper overlays, unless you reduce their opacity.
</p>
</td>
</tr>
<tr class="nobottomborder">
<td colspan="2">
<div>
<span class="fold fold-settings-closed material-icons" id="settings-apistg-closed">keyboard_arrow_right</span>
<span class="fold-settings apistg material-icons" id="apistg2">keyboard_arrow_down</span>
<span class="fold fold-link fold-settings" id="settings-apistg">API keys</span>
<span id="keystxt" class="help-b material-icons" title="Help">help_outline</span>
<p id="keystxt-help" class="help-p">
To use elevation and routing services, you must set your own API keys.
Current config is using:<br>
Elevation: <span id="elevation-srv"></span>.<br>
Routing: <span id="routing-srv"></span>.
</p>
</div>
</td>
</tr>
<tr class="notopborder fold-settings apistg">
<td>
</td>
<td>
<div>
<span class="setting-name">OpenRoute:</span>
<input id="orskey-chk" class="no-trim key-chk" type="checkbox">
<input id="orskey-value" placeholder="Your OpenRouteService key" class="setting-input key-value">
<span id="orskeytxt" class="help-b material-icons" title="Help">help_outline</span>
<p id="orskeytxt-help" class="help-p">
This key is used for the (i) computing point and track elevation, and (ii) routing feature, which draws tracks along map roads.
Get your free API key/token from <a target="_blank" href="https://openrouteservice.org/">OpenRoute Service</a>.
</p>
</div>
<div>
<span class="setting-name">GraphHopper:</span>
<input id="ghkey-chk" class="no-trim key-chk" type="checkbox">
<input id="ghkey-value" placeholder="Your GraphHopper key" class="setting-input key-value">
<span id="ghkeytxt" class="help-b material-icons" title="Help">help_outline</span>
<p id="ghkeytxt-help" class="help-p">
This key is used for the routing feature, which draws tracks along map roads.
Get your API key from <a target="_blank" href="https://graphhopper.com/">GraphHopper</a>.
</p>
</div>
<div>
<span class="setting-name">Google:</span>
<input id="ggkey-chk" class="no-trim key-chk" type="checkbox">
<input id="ggkey-value" placeholder="Your Google API key" class="setting-input key-value">
<span id="ggkeytxt" class="help-b material-icons" title="Help">help_outline</span>
<p id="ggkeytxt-help" class="help-p">
This key is used for the Google Elevation service, which gets the elevation of each track point.
Get your "Maps Elevation API" key from <a target="_blank" href="https://console.developers.google.com/apis">Google Developers Console</a>.
</p>
</div>
<div>
<span class="setting-name hide-on-small-screen"> </span>
<button id="keys-reset" class="setting-value">Reset</button>
</div>
<div>
<span class="setting-name hide-on-small-screen"> </span>
<label><input id="apikeys-warn" type="checkbox"> Warn if no API keys</label>
<span id="apikeys-warntxt" class="help-b material-icons" title="Help">help_outline</span>
<p id="apikeys-warntxt-help" class="help-p">
If checked an info box will pop up when elevation or routing services are not configured.
</p>
</div>
</td>
</tr>
<tr class="nobottomborder">
<td colspan="2">
<div>
<span class="fold fold-settings-closed material-icons" id="settings-unitstg-closed">keyboard_arrow_right</span>
<span class="fold-settings unitstg material-icons" id="unitstg2">keyboard_arrow_down</span>
<span class="fold fold-link fold-settings" id="settings-unitstg">Other</span>
</div>
</td>
</tr>
<tr class="notopborder fold-settings unitstg">
<td>
</td>
<td>
<div>
<span class="setting-name">Unit of length:</span>
<label>
<input type="radio" value="0" name="unitopt">
Metric
</label>
<label>
<input type="radio" value="1" name="unitopt">
Imperial
</label>
<span id="unittxt" class="help-b material-icons" title="Help">help_outline</span>
<p id="unittxt-help" class="help-p">
Choose between imperial and metric unit of length.
</p>
</div>
</td>
</tr>
<tr class="notopborder fold-settings unitstg">
<td>
</td>
<td>
<div>
<span class="setting-name">Offline cache:</span>
<label>
<input type="checkbox" id="use-service-worker">
(experimental)
</label>
<span id="swtxt" class="help-b material-icons" title="Help">help_outline</span>
<p id="swtxt-help" class="help-p">
Activate service worker to use offline cache.
</p>
</div>
</td>
</tr>
<tr class="notopborder fold-settings unitstg">
<td>
</td>
<td>
<div>
<span class="setting-name">Round coords.:</span>
<input type="checkbox" id="rounding-on">
<label id="rounding-decimals-label">
<select id="rounding-decimals">
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
</select>
decimals
</label>
<span id="rounding-txt" class="help-b material-icons" title="Help">help_outline</span>
<p id="rounding-txt-help" class="help-p">
Maximum number of decimals to keep in location coordinates.
</p>
</div>
</td>
</tr>
</table>
<!-- ABOUT -->
<table id="menuabout">
<tr>
<td>
<img id="about-logo" src="img/wtracks-icon-1x.png" alt="WTracks logo">
</td>
<td>
<div><span class="appname">WTracks</span> by <a id="email" href="#">Olivier Potonniée</a></div>
<div>
Open source project on
<a href="https://github.com/opoto/wtracks" target="_blank" title="WTracks project on Github" id="github-logo">
<svg height="24" viewBox="0 0 16 16" version="1.1" width="24"><path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path></svg>
</a>
</div>
</td>
</tr>
<!-- Donate -->
<tr class="nobottomborder">
<td colspan="2">
<div>
<span class="fold fold-about-closed material-icons" id="about-donate-closed">keyboard_arrow_right</span>
<span class="fold-about donate material-icons">keyboard_arrow_down</span>
<span class="fold fold-link fold-about" id="about-donate">Donate</span>
</div>
</td>
</tr>
<tr class="notopborder fold-about donate">
<td colspan="2">
<p>WTracks is free to use <i class="material-icons">mood</i></p>
<p>You can however donate to help maintaining this service:</p>
<p>
<a href="https://paypal.me/wtracks/2" target="_blank" class="donatebtn" title="Donate with PayPal">
<img id="donate-paypal" src="img/donate-paypal.png" alt="Donate with PayPal">
</a>
</p>
<p><i class="material-icons">warning</i> Do not check any 'goods and services' option in PayPal, you would pay useless fees.</p>
</td>
</tr>
<!-- Documentation -->
<tr class="nobottomborder">
<td colspan="2">
<div>
<span class="fold fold-about-closed material-icons" id="about-docs-closed">keyboard_arrow_right</span>
<span class="fold-about docs material-icons">keyboard_arrow_down</span>
<span class="fold fold-link fold-about" id="about-docs">Documentation and shortcuts</span>
</div>
</td>
</tr>
<tr class="notopborder fold-about docs">
<td colspan="2">
<p>Check <a href="doc/" target="_blank">documentation</a> for application features and details. You can also join the <a target="_blank" href="https://groups.google.com/forum/#!forum/wtracks">online forum</a> to share questions and hints with other WTracks users</p>
<p><b>Keyboard shortcuts:</b></p>
</td>
</tr>
<tr class="notopborder fold-about docs">
<td class="key">ESC</td><td>Open/close menu. Exit edits</td>
</tr>
<tr class="notopborder fold-about docs">
<td class="key">F2</td><td>Edit track name and description</td>
</tr>
<tr class="notopborder fold-about docs">
<td class="key">N</td><td>New track</td>
</tr>
<tr class="notopborder fold-about docs">
<td class="key">O</td><td>Open file</td>
</tr>
<tr class="notopborder fold-about docs">
<td class="key">S</td><td>Save</td>
</tr>
<tr class="notopborder fold-about docs">
<td class="key">e</td><td>Edit track in manual mode</td>
</tr>
<tr class="notopborder fold-about docs">
<td class="key">a</td><td>Edit track in auto mode</td>
</tr>
<tr class="notopborder fold-about docs">
<td class="key">.</td><td>Add new segment</td>
</tr>
<tr class="notopborder fold-about docs">
<td class="key">x</td><td>Delete active segment</td>
</tr>
<tr class="notopborder fold-about docs">
<td class="key">m</td><td>Move track</td>
</tr>
<tr class="notopborder fold-about docs">
<td class="key">w</td><td>Edit waypoints</td>
</tr>
<tr class="notopborder fold-about docs">
<td class="key">z</td><td>Undo last edit</td>
</tr>
<tr class="notopborder fold-about docs">
<td class="key">f</td><td>Find address</td>
</tr>
<tr class="notopborder fold-about docs">
<td class="key">l</td><td>Locate current position</td>
</tr>
<tr class="notopborder fold-about docs">
<td class="key">t</td><td>Tools</td>
</tr>
<tr class="notopborder fold-about docs">
<td class="key">s</td><td>Segments editor</td>
</tr>
<tr class="notopborder fold-about docs">
<td class="key">*</td><td>Settings</td>
</tr>
<tr class="notopborder fold-about docs">
<td class="key">?</td><td>About / Documentation</td>
</tr>
</table>
</div>
<!-- Warning popup -->
<div id="warning-box" class="prompt-content">
</div>
<!-- Prompt box -->
<div id="prompt" class="modal overlay">
<!-- Modal content -->
<div class="prompt-content">
<table>
<tr>
<th colspan="2">Enter track details</th>
</tr>
<tr>
<td>Name: </td>
<td><input id="prompt-name" type="text" size="50" value=""></td>
</tr>
<tr>
<td>Description: </td>
<td><textarea id="prompt-desc"></textarea></td>
</tr>
<tr>
<td></td>
<td>
<button id="prompt-ok" class="ok-btn">Ok</button>
<button id="prompt-cancel" class="cancel-btn">Cancel</button>
</td>
</tr>
</table>
</div>
</div>
<!-- Prompt box -->
<div id="confirm-dropbox" class="modal overlay">
<!-- Modal content -->
<div class="prompt-content">
<p>Ready to upload to your Dropbox account. Please confirm to proceed.</p>
<button id="dbs-ok" class="ok-btn">Ok</button>
<button id="dbs-cancel" class="cancel-btn">Cancel</button>
</div>
</div>
<!-- Share track box box -->
<div id="wtshare-box" class= "modal overlay">
<!-- Modal content -->
<div class="prompt-content">
<div class="box-header"><a id="wtshare-box-close" href="#" class="close-button">×</a></div>
<div id="wtshare-ask">
<p>
Sharing will anonymously upload your track to the cloud and provide you a shareable link to reopen it.
<span id="shareurltxt" class="help-b material-icons" title="Help">help_outline</span>
</p>
<p id="shareurltxt-help" class="help-p">
Your track will be stored on a third-party server
(<a id="wtshare-web" href="#" target="_blank"><span id="wtshare-name"></span></a>)
without any guarantee of availability.
Make sure to keep a copy of the file on your own.
</p>
<div>
<table>
<tr>
<td class="tdfit">
<i class="material-icons">map</i>
<input id="wtshare-map" type="checkbox">
</td><td>
<label for="wtshare-map">
Check to include your current background map name (<span id="wtshare-map-name"></span>) in the shared link,
so that recipient will get the same visualization of your track as you.
</label>
<span id="sharemaptxt" class="help-b material-icons" title="Help">help_outline</span>
<br>
<span id="sharemaptxt-help" class="help-p">
Note that the map has to be configured and not disabled on your recipient side.
If your current background map is a result of a personal setting,
you will need to share this setting using the <a href="./maps.html">Map Editor</a>.
</span>
</td>
</tr>
<tr class="if-encrypt hidden">
<td class="tdfit">
<i class="material-icons">security</i>
<input id="wtshare-enc" type="checkbox">
</td><td>
<label for="wtshare-enc">Check to encrypt your track on the cloud for enhanced privacy</label>
<span id="shareenctxt" class="help-b material-icons" title="Help">help_outline</span>
<br>
<span id="shareenctxt-help" class="help-p">
If checked your track will be encrypted in your browser before being sent and saved in the cloud.
The decryption key will be included in the shareable link you will be provided.
The encrypted track cannot be decrypted without this link.
</span>
</td>
</tr>
</table>
</div>
<button id="wtshare-start" class="ok-btn">Continue</button>
<button id="wtshare-cancel" class="cancel-btn">Cancel</button>
</div>
<div id="wtshare-processing">
<p>Uploading, please wait...</p>
<div id="wtshare-spinner" class="spinner">
<div class="bounce1"></div>
<div class="bounce2"></div>
<div class="bounce3"></div>
</div>
</div>
<div id="wtshare-done">
<div id="wtshare-links">
<p>Here is the link to your track, copy and share it.</p>
<p>
<i class="material-icons copyonclick" title="Copy link" data-copyonclick-from="wtshare-val">filter_none</i>
<input id="wtshare-val" type="text" size="50" value="" readonly="readonly">
<a href="#" id="wtshare-viewqr" title="View link as QR Code" class="wtshare-item">
<i class="material-icons">qr_code_scanner</i>
</a>
</p>
<p>
<span class="wtshare-item"><a href="#" id="wtshare-open">
<i class="material-icons">open_in_new</i> Open that link</a>
</span>
<span class="hide-on-small-screen"> | </span>
<span class="wtshare-item">
<a href="#" id="wtshare-view" target="_blank"><i class="material-icons">cloud</i> View cloud storage</a>
</span>
</p>
</div>
<div id="wtshare-qrcode">
<a id="wtshare-back" href="#"><i class="material-icons">arrow_back</i></a>
<p>Scan the QR Code below with your mobile to open the track:</p>
<img id="wtshare-qrimg" alt="QR Code to be scanned" src="#">
</div>
<button id="wtshare-ok" class="ok-btn">Close</button>
</div>
</div>
</div>
<table id="tdisplay">
<tr id="menu-bar">
<td colspan="7">
<a href="#" id="menu-button" title="menu (m)" class="button"><span class="material-icons">menu</span></a>
<span id="track-name-edit" class="link">
<span class="title" id="track-name"></span>
<span class="material-icons symbol" title="Edit track details (F2)">edit</span>
</span>
<div id="status">
<div id="spinner" class="spinner">
<div class="bounce1"></div>
<div class="bounce2"></div>
<div class="bounce3"></div>
</div>
<span id="status-msg"></span>
</div>
</td>
</tr>
<tr id="map-row">
<td id="map" colspan="7"></td>
</tr>
<tr class="statistics" title="Click to see elevation profile">
<th><span class="hide-medium">Distance</span><span class="material-icons show-medium">straighten</span></th>
<td title='One Way'>
<span class="material-icons symbol">trending_flat</span> <span id="distow"></span>
</td>
<td title='Round Trip'>
<span class="material-icons symbol">sync_alt</span> <span id="distrt"></span>
</td>
<th><span class="hide-medium">Alt. Max</span><span class="material-icons show-medium">vertical_align_top</span></th>
<td>
▲ <span id="altmax"></span>
</td>
<th class="hide-medium">Climbing</th>
<td id="climbing"></td>
</tr>