-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathRouteView.html
847 lines (754 loc) · 47.6 KB
/
RouteView.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
<!-- --------------------------------------------------------------------------- -->
<!-- --- RouteView - Olivier Singla --- -->
<!-- --- StreetView Player - Virtual Ride, using Google Maps and Street View --- -->
<!-- --- http://StreetViewPlayer.org --- -->
<!-- --------------------------------------------------------------------------- -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta charset="utf-8">
<title>RouteView - StreetView player</title>
<meta name="description"
content="Allows a virtual ride over a Google Maps route using Street View. Step (in meters) and Refresh Rate are configurable. Street View Player. Simulate your Driving Route with this Google Map Web Application. Virtual Ride using Street View.">
<meta name="revisit-after" content="4 hours">
<link rel="stylesheet" href="dojo-release-1.16.3/dijit/themes/claro/claro.css" media="screen" >
<link rel="stylesheet" href="dojo-release-1.16.3/dijit/themes/tundra/tundra.css" media="screen" >
<link rel="stylesheet" href="dojo-release-1.16.3/dojox/layout/resources/FloatingPane.css" media="screen" >
<script src="https://apis.google.com/js/client.js?onload=load"></script>
<script src="dojo-release-1.16.3/dojo/dojo.js"
data-dojo-config="isDebug: true, async: true, parseOnLoad: true">
</script>
<script>
require([
"dijit/layout/BorderContainer",
"dijit/layout/TabContainer",
"dijit/layout/ContentPane",
"dijit/Dialog",
"dijit/form/HorizontalSlider",
"dijit/form/HorizontalRuleLabels",
"dijit/form/HorizontalRule",
"dijit/form/Button",
"dijit/form/TextBox",
"dijit/Tooltip",
"dijit/Fieldset",
"dijit/form/DropDownButton",
"dijit/form/RadioButton",
"dijit/form/CheckBox",
"dijit/form/DataList",
"dijit/form/ComboBox",
"dijit/form/Select",
"dijit/TooltipDialog",
"dojox/widget/Standby",
"dojox/layout/FloatingPane",
"dojo/domReady!"]
);
</script>
<link rel="stylesheet" href="RouteView.css" media="screen" type="text/css" />
</head>
<body class="claro" id="id_body">
<div id="id_pane_standby" data-dojo-type="dojox/widget/Standby" data-dojo-props="target:'app_layout', color:'lightwhite', image:'', imageText: ''"></div>
<div id="app_layout" class="demoLayout" data-dojo-type="dijit/layout/BorderContainer"
data-dojo-props="design: 'headline', gutters:true, liveSplitters:true">
<!-- ---------- -->
<!-- TOP layout -->
<!-- ---------- -->
<div id="id_top_layout" class="edgePanel" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region: 'top'">
<div id="id_div_top_layout">
<table style="width:100%">
<tr>
<td valign="middle" align="left" id="id_video">
<a href="http://streetviewplayer.org/VirtualRide/about" target="_blank">How To Video</a>
</td>
<td valign="middle" align="center" style="width:100%" >
<b>RouteView - Google StreetView Player - Virtual Ride using Google Street View</b> <b id='id_routeview_info' ></b>
</td>
<td valign="middle" align="right" id='id_link_to_github_project'>
<a href="https://github.com/osingla/RouteView" target="_blank">Github Project</a>
</td>
</tr>
</table>
<div data-dojo-type="dijit/Tooltip" data-dojo-props="connectId:'id_video',position:['below-centered'],showDelay:750,hideDelay:0">
This will launch a video which demonstrate how to use Street View Player.<br>
</div>
<div data-dojo-type="dijit/Tooltip" data-dojo-props="connectId:'id_link_to_github_project',position:['below-centered'],showDelay:750,hideDelay:0">
This software is 100% open-source and hosted on <a href="https://github.com/" target="_blank">Github</a><br><br>
Click <a href="https://github.com/osingla/RouteView" target="_blank">here</a> if you want to see the source.
<br><br>
<hr>
<br>
Please note that this software is still in <b>Beta</b>.<br>
Some features are still missing, or may not yet be fully functional,<br>
or they could simply be broken by the latest changes I made...<br><br>
I am working on it on my spare time, so please bear with me!
</div>
</div>
<div id="id_div_top_layout_ctrl_mode" style="display:none; margin:auto; width:100%" align="center">
<b>
In this mode, select 2 points to show the Virtual Street Player. <span id="id_text_cancel_ctrl_mode">Cancel with CTRL</span>
</b>
</div>
</div>
<!-- ------------ -->
<!-- RIGHT panel -->
<!-- ------------ -->
<div id="id_right_layout" class="edgePanel" data-dojo-type="dijit/layout/ContentPane"
data-dojo-props="region:'center', splitter:true, title:'View'">
<table style="width:100%; height:100%">
<tr id="id_no_google_maps_api" style="display:none" >
<td colspan="2" style="width:100%; height:0%; text-align:center; vertical-align:middle">
<b><font size="4" color="red">You do not have provided a Google Maps API Key.</font></b>
<br>
<br>
<a href='https://developers.google.com/maps/faq' target='_blank'>https://developers.google.com/maps/faq</a><br>
<a href='https://developers.google.com/maps/documentation/javascript/get-api-key' target='_blank'>https://developers.google.com/maps/documentation/javascript/get-api-key</a>
<br>
<br>
Once you you have a key, select "Configuration", then put you key in "My Google Maps API key."
<br>
Your API keys needs to support these APIs:<br>
Directions API - Places API - Geocoding API - MAPS Javascrip API<br>
<br>
</td>
</tr>
<tr>
<td id="id_left_layout" >
<div class="block" style="border:1px solid; overflow:scroll; height:100%; width:auto" >
<!-- Route #1 -->
<fieldset data-dojo-type="dijit/Fieldset" data-dojo-props="toggleable:false" id="id_fieldset_route"
style="background:#b3daff"
onClick='require(["RouteView.js"], function( s ) { s.cb_click_fieldset_route(); })'>
<legend>
<span id="id_route_info" onClick='require(["RouteView.js"], function( s ) { s.cb_set_map_type_id(); })' >
<span id="id_route_distance_duration" style="display:none">
<span><b id="id_route_dist_kms"></b> kms</span>
-
<span><b id="id_route_dist_miles"></b> miles</span>
-
<span><b id="id_route_duration"></b></span>
-
<span><b id="id_route_summary"></b></span>
</span>
<div data-dojo-type="dijit/Tooltip" data-dojo-props="connectId:'id_route_info',position:['above-centered'],showDelay:750,hideDelay:0">
Click here to select a different type of map (terrain, hybride, roadmap)
</div>
</span>
</legend>
<table cellspacing="0" cellpadding="0" style="white-space: nowrap" >
<tr >
<td>
<table cellspacing="0" cellpadding="0" style="white-space: nowrap" id="id_table_route">
</table>
</td>
<td>
<table cellspacing="0" cellpadding="0" style="height:100%; white-space: nowrap" id="id_table_drive">
</table>
</td>
</tr>
</table>
<table style="width:100%">
<tr>
<td align="left" valign="middle">
<button data-dojo-type="dijit/form/Button" data-dojo-props="iconClass:'icon_dollar', showLabel: false" style="font-size: 75%"
onMouseEnter='require(["RouteView.js"], function( s ) { s.cb_show_tooltip_dollar(); })' id="btn_dollar" >
</button>
</td>
<div data-dojo-type="dijit/Tooltip" data-dojo-props="connectId:'btn_dollar',position:['below-centered'],showDelay:750,hideDelay:0"
id="tooltip_btn_dollar" >
</div>
<td align="left" valign="middle">
<div align="left">
<button data-dojo-type="dijit/form/ToggleButton" data-dojo-props="iconClass:'icon_btn_highway', checked: true" style="font-size: 85%"
onClick='require(["RouteView.js"], function( s ) { s.cb_click_no_hwy(); })' id="id_check_no_hwy" >
<span id="id_label_check_no_hwy"></span>
</button>
<button data-dojo-type="dijit/form/ToggleButton" data-dojo-props="iconClass:'icon_btn_toll', checked: true" style="font-size: 85%"
onClick='require(["RouteView.js"], function( s ) { s.cb_click_no_toll(); })' id="id_check_no_toll" >
<span id="id_label_check_no_toll"></span>
</button>
<div data-dojo-type="dijit/Tooltip" data-dojo-props="connectId:'id_check_no_hwy',position:['below-centered'],showDelay:750,hideDelay:0">
When selected, this asks Google Maps service to create a route not using Highways.<br>
Using this button will recreate the route.
</div>
<div data-dojo-type="dijit/Tooltip" data-dojo-props="connectId:'id_check_no_toll',position:['below-centered'],showDelay:750,hideDelay:0">
When selected, this asks Google Maps service to create a route not using Toll routes.<br>
Using this button will recreate the route.
</div>
</div>
</td>
<td align="center" valign="middle">
<div data-dojo-type="dijit/form/DropDownButton" data-dojo-props='autoWidth:false' id="id_places_dlg" style="font-size: 85%" xdisabled>
<span>Places</span>
<div data-dojo-type="dijit/TooltipDialog">
<table style="width:100%">
<tr>
<td style="text-align:right; vertical-align:middle">
Place:
</td>
<td>
<input type="test" value="Holiday Inn Expresss"
dojoType="dijit.form.TextBox" trim="true" id="id_place" maxlength="64" style="width: 30em;" />
</td>
</tr>
<tr>
<td>
</td>
<td>
<select style="width:350px;" tabindex="5" id="id_places" maxlength="80"
onchange="document.getElementById('id_place').value = this.value" >
<optgroup label="Gas Stations">
<option>Gas Stations</option>
<option>Sheetz</option>
<option>Pilot Flying J</option>
<option>TA Petro</option>
<option>Buc-ee's</option>
<option>Wawa</option>
</optgroup>
<optgroup label="Food">
<option>Fast Food</option>
<option>McDonald's</option>
<option>Chick-fil-A</option>
<option>Wendy's</option>
<option>Subway Restaurant</option>
<option>Bojangles</option>
<option>Five Guys</option>
<option>Panera Bread</option>
</optgroup>
<optgroup label="Parks">
<option>State Parks</option>
<option>National Parks</option>
</optgroup>
<optgroup label="Motels">
<option selected>Holiday Inn Expresss</option>
<option>Drury Inn</option>
<option>Wyndham Garden</option>
<option>Best Western Plus</option>
<option>Fairfield Inn by Marriott</option>
<option>Holiday inn</option>
<option>Hampton Inn</option>
</optgroup>
</select>
</td>
</tr>
<tr>
<td colspan="2">
<hr>
</td>
</tr>
<tr>
<td colspan="2" valign="middle" align="center" >
<button dojoType="dijit/form/ToggleButton" data-dojo-props="iconClass:'dijitCheckBoxIcon', checked: false" id="id_btn_show_place"
onclick='require(["RouteView.js"], function( s ) { s.show_clear_place(); })'>
Show
</button>
</td>
</tr>
</table>
</div>
</div>
<div data-dojo-type="dijit/Tooltip" data-dojo-props="connectId:'id_places_dlg',position:['below-centered'],showDelay:750,hideDelay:0">
This dialog let you display places on the map.<br>
For instance, you could choose to display all McDonald's on the map.<br>
Or, you could also choose to display all Harley Davidson dealerships on the map.
</div>
</td>
<td align="center" valign="middle">
<div data-dojo-type="dijit/form/DropDownButton" data-dojo-props='autoWidth:false' id="id_files_dlg" style="font-size: 85%; display:none" disabled>
<span>Files</span>
<div data-dojo-type="dijit/TooltipDialog">
<table style="width:100%">
<tr>
<td valign="middle" align="left">
<input type="file" id="id_btn_load_file">
Load a Ride
</button>
</td>
</tr>
<tr>
<td valign="middle" align="left">
<a id="link" target="_blank" download="file.txt">Download</a>
</td>
</tr>
</table>
</div>
</div>
</td>
<td align="center" valign="middle">
<div data-dojo-type="dijit/form/DropDownButton" data-dojo-props='autoWidth:false' id="id_configuration_dlg" style="font-size: 85%">
<span>Configuration</span>
<div data-dojo-type="dijit/TooltipDialog">
<div style="width:100%" align="center">
<span>Route Thickness : <span></span><b id="id_route_thickness">3</b> pixels</span></span><br>
<div id="id_input_route_thickness"
style="width:400px;"
name="horizontalSlider"
data-dojo-type="dijit/form/HorizontalSlider"
data-dojo-props="value:3,
minimum: 2,
maximum:10,
discreteValues:9,
intermediateChanges:true,
showButtons:true"
onChange='require(["RouteView.js"], function( s ) { s.cb_route_thickness_changed(); })'>
</div>
</div>
<div data-dojo-type="dijit/Tooltip" data-dojo-props="connectId:'id_input_route_thickness',position:['below-centered'],showDelay:750,hideDelay:0" class='tooltip-custom' >
<div style="color:darkred">
If you change the route tickness, this will be used next time you request a route.
</div>
</div>
<hr>
<div style="width:100%" align="center">
<table>
<tr>
<td>
<div data-dojo-type="dijit/form/DropDownButton" >
<span>Map Style</span>
<div data-dojo-type="dijit/TooltipDialog">
<select id="id_map_style" value=""
onChange='require(["RouteView.js"], function( s ) { s.cb_map_style_changed(); })'>
<option value="">Default</option>
<option disabled>--------------------------------</option>
<option value="1">Style 1</option>
<option value="2">Style 2</option>
<option value="3">Style 3</option>
<option value="4">Style 4</option>
<option value="5">Style 5</option>
</select>
</div>
</div>
</td>
<td>
<div align="center">
<div data-dojo-type="dijit/form/DropDownButton" id='id_btn_google_maps_api_key'>
<span>My Google Maps API key</span>
<div data-dojo-type="dijit/TooltipDialog">
<table>
<tr>
<td>
Key:
</td>
<td>
<input type="password" name="google_maps_api_key" value=""
dojoType="dijit.form.TextBox" trim="true" id="id_google_maps_api_key" maxlength="64" style="width: 30em;" type="hidden"
onfocus='this.old_value=this.value'
onChange='require(["RouteView.js"], function( s ) { s.cb_change_google_maps_api_key(); });; this.old_value=this.value;'
/>
</td>
</tr>
<tr>
<td>
Show:
</td>
<td>
<button data-dojo-type="dijit/form/ToggleButton" id="id_show_google_maps_api_key"
data-dojo-props="iconClass:'dijitCheckBoxIcon', checked: false"
onChange='require(["RouteView.js"], function( s ) { s.cb_hide_google_maps_api_key(); })' >
Visible
</button>
</td>
</tr>
</table>
</div>
</div>
</div>
<div data-dojo-type="dijit/Tooltip" data-dojo-props="connectId:'id_btn_google_maps_api_key',position:['below-centered'],showDelay:750,hideDelay:0">
<div style="color:darkred">
Without a valid Google Maps API, this program is not usable!<br><br>
Beginning on June 11, 2018, Google requires to use a valid API key<br>
for all Google Maps projects. Since I can not afford to have my personal<br>
key to be used here by everbody using this free program, your only option is<br>
to request a google maps api key and use it here.
</div>
</div>
</td>
</tr>
</table>
</div>
<div style="width:100%" align="center">
<div data-dojo-type="dijit/form/DropDownButton" id="btn_addr_for_orig" >
<span >Set Starting Position</span>
<div data-dojo-type="dijit/TooltipDialog">
<input type="text" name="addr_for_orig" value=""
dojoType="dijit.form.TextBox"
trim="true" id="id_addr_for_orig" maxlength="80"
onfocus='this.old_value=this.value'
onChange='require(["RouteView.js"], function(s) { s.cb_change_starting_position(); }); this.old_value=this.value;'
propercase="true" />
</div>
</div>
<div data-dojo-type="dijit/Tooltip" data-dojo-props="connectId:'btn_addr_for_orig',position:['below-centered'],showDelay:750,hideDelay:0">
<div style="color:darkred">
This allows you to setup an address (usually your home address).<br>
When you start then this application, Google Maps will show this address.
</div>
</div>
<div data-dojo-type="dijit/form/DropDownButton" data-dojo-props='autoWidth:false' id='btn_id_autocomplete_settings'>
<span>Autocomplete Settings</span>
<div data-dojo-type="dijit/TooltipDialog">
<table>
<tr>
<td style="text-align:right; vertical-align:middle">
Type Restriction:
</td>
<td style="text-align:left; vertical-align:middle">
<select id="id_autocomplete_restriction" value=""
onChange='require(["RouteView.js"], function(s) { s.cb_change_autocomplete_type_restriction(); });'>
<option value="">None</option>
<option disabled>--------------------------------</option>
<option value="geocode">geocode</option>
<option value="address">address</option>
<option value="establishment">establishment</option>
<option value="(cities)">(cities)</option>
<option value="(regions)">(regions)</option>
</select>
</td>
</tr>
<tr>
<td style="text-align:right; vertical-align:middle">
Country:
</td>
<td style="text-align:left; vertical-align:middle">
<select id="id_autocomplete_restrict_country" value=""
onChange='require(["RouteView.js"], function(s) { s.cb_change_autocomplete_restrict_country(); });'>
<option value="">All</option>
<option disabled>--------------------------------</option>
<optgroup label="North America">
<option value="US">USA</option>
<option value="CA">Canada</option>
<option value="MX">Mexico</option>
</optgroup>
<optgroup label="South America">
<option value="CL">Chile</option>
<option value="BR">Brazil</option>
</optgroup>
<optgroup label="Europe">
<option value="AD">Andorre</option>
<option value="AT">Austria</option>
<option value="BE">Belgium</option>
<option value="CH">Switzerland</option>
<option value="CZ">Czech Republic</option>
<option value="DK">Denmark</option>
<option value="DE">Germany</option>
<option value="FI">Finland</option>
<option value="FR">France</option>
<option value="GR">Greece</option>
<option value="HU">Hungury</option>
<option value="IE">Ireland</option>
<option value="IT">Italy</option>
<option value="LU">Luxembourg</option>
<option value="MC">Monaco</option>
<option value="NL">Netherlands</option>
<option value="NO">Norway</option>
<option value="PL">Poland</option>
<option value="PT">Portugal</option>
<option value="SE">Sweden</option>
<option value="GB">United Kingdom</option>
</optgroup>
</select>
</td>
</tr>
</table>
<br>
</div>
</div>
<div data-dojo-type="dijit/Tooltip" data-dojo-props="connectId:'btn_id_autocomplete_settings',position:['below-centered'],showDelay:750,hideDelay:0">
<div style="color:darkred">
This allows you to define a Country and Type Restriction<br>
(such as address, city, region, etc.) that will be used<br>
for Autocomplete operation.<br><br>
<b>You will need to reload the page to use the new settings.</b>
</div>
</div>
<hr>
<table>
<tr>
<td>
<button dojoType="dijit.form.Button" type="button" id="id_btn_clear_settings"
onclick='require(["RouteView.js"], function( s ) { s.clear_settings(); })'>
Clear Settings
</button>
</td>
</tr>
</table>
<div data-dojo-type="dijit/Tooltip" data-dojo-props="connectId:'id_btn_clear_settings',position:['below-centered'],showDelay:750,hideDelay:0">
<div style="color:darkred">
This will clear all your settings!<br>
You will need to reload the page after your clear the settings.
</div>
</div>
<hr>
<table>
<tr align="center">
<td>
<button dojoType="dijit.form.Button" type="button" style="Display: " id="id_btn_save_gpx"
onclick='require(["RouteView.js"], function( s ) { s.do_save_gpx(); })' disabled>Save GPX file</button>
</td>
<td>
<button dojoType="dijit.form.Button" type="button" style="Display: " id="id_btn_create_gmaps_url"
onclick='require(["RouteView.js"], function( s ) { s.do_create_gmaps_url(); })' disabled>Create Google Maps URL</button>
</td>
</tr>
<tr>
<td valign="middle" align="center" colspan="2">
<button dojoType="dijit.form.Button" type="button" style="Display: " id="id_btn_create_long_url"
onclick='require(["RouteView.js"], function( s ) { s.do_create_long_url(); })' disabled>Create StreetView Player URL</button>
</td>
</tr>
</table>
<div data-dojo-type="dijit/Tooltip" data-dojo-props="connectId:'id_btn_create_gmaps_url',position:['below-centered'],showDelay:750,hideDelay:0">
<div style="color:darkred">
This creates a URL which will use Google Maps with the current route.
<div>
</div>
<div data-dojo-type="dijit/Tooltip" data-dojo-props="connectId:'id_btn_create_long_url',position:['below-centered'],showDelay:750,hideDelay:0">
<div style="color:darkred">
This creates a URL which will use StreetViewPlayer with the current route.<br>
You can use this feature to bookmark a specific route.
<div>
</div>
</div>
</div>
</div>
<div data-dojo-type="dijit/Tooltip" data-dojo-props="connectId:'id_configuration_dlg',position:['below-centered'],showDelay:750,hideDelay:0">
This dialog let you configure a few things like the distance and time intervals between images,<br>
a default starting point, autocomplete settings, etc...
</div>
</td>
<td align="center" valign="middle">
<button data-dojo-type="dijit/form/Button" data-dojo-props="iconClass:'icon_btn_drive', showLabel: false" style="font-size: 75%"
onClick='require(["RouteView.js"], function( s ) { s.cb_click_btn_drive_whole_route(); })' id="id_btn_drive_whole_route" disabled >
</button>
</td>
<div data-dojo-type="dijit/Tooltip" data-dojo-props="connectId:'id_btn_drive_whole_route',position:['below-centered'],showDelay:750,hideDelay:0">
This allows to <b><i>play</b></i> all legs of the route using StreetView.<br><br>
Each image will stay for a specific time (default is 1,200 msec), <br>
and each new image is separated from the previous one by 175 meters.
</div>
</tr>
</table>
</fieldset>
<br>
<br>
<div style="width:100%" align="center">
<div data-dojo-type="dijit/Tooltip" data-dojo-props="connectId:'id_btn_save_gpx',position:['below-centered'],showDelay:750,hideDelay:0">
<div style="color:darkred">
Once a route has been defined, this option allows you to create and save a GPX file<br>
(GPX stamds for: GPS exchange format).<br><br>
This file can then be uploaded to a GPS device (for instance a Garmin).<br><br>
<i>This feature is mostly untested, and provided at your own risk!<br>
I only tested it with my Garmin Zumo XT that I use on my RoadKing.</i>
<div>
</div>
</div>
</div>
</td>
<td id="td_map_canvas" style="width:100%; overflow-x:hidden; overflow-y:hidden">
<div id="id_map_canvas" style="width: 100%; height: 100%; float:left"></div>
</td>
<td id="td_panoramas_canvas" style="width:100%; height:100%; overflow-x:hidden; overflow-y:hidden ">
<div id="id_panorama" style="display:None; width: 0%; height: 0%"> </div>
<div id="id_panorama2" style="position:absolute; width: 100%; height: 100%; top: 0; xleft: 0" > 2</div>
<div id="id_panorama3" style="position:absolute; width: 100%; height: 100%; top: 0; xleft: 0" > 3</div>
<div id="id_panorama4" style="position:absolute; width: 100%; height: 100%; top: 0; xleft: 0" > 4</div>
</td>
<td id="td_streetview_panel" style="height:100%; width:100%; overflow-x:hidden; overflow-y:hidden; display: None">
<table style="height:100%; margin:auto">
<tr style="margin:auto; height:1%">
<td>
<div id="id_floating_panorama_1" style="width:320px ; height: 240px; background:#DDDDDD"></div>
</td>
</tr>
<tr style="margin:auto; height:1%">
<td>
<div id="id_floating_panorama_2" style="width:320px ; height: 240px; background:#D0D0D0"></div>
</td>
</tr>
<tr style="margin:auto; height:1%">
<td align="center" valign="bottom" >
<br>
<div style="margin:auto; height:100%"id="xxxx>">
<button id='btn_dec_floating_pano' data-dojo-type="dijit/form/Button" data-dojo-props="iconClass:'icon_btn_decrease', showLabel: false"
onClick='require(["RouteView.js"], function( s ) { s.cb_click_inc_dec_floating_pane(-1, true); })'
type="button">
</button>
<button id='btn_inc_floating_pano' data-dojo-type="dijit/form/Button" data-dojo-props="iconClass:'icon_btn_increase', showLabel: false"
onClick='require(["RouteView.js"], function( s ) { s.cb_click_inc_dec_floating_pane(1, true); })'
type="button">
</button>
</div>
</td>
</tr>
<tr style="margin:auto; height:97%">
<td align="center" valign="top" >
<br>
Move the mouse pointer over a StreetView enabled route<br>
(shown in blue) to see the two images<br>(same position, but 180 degrees apart).<br>
<br>
Use the <b>Ctrl key</b> to avoid showing an image while moving the mouse.
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" style="width:100%; height:0%; text-align:center; vertical-align:middle">
<table style="width:100%" cellspacing="0" cellpadding="0" style="white-space: nowrap">
<tr id="id_control_route" >
<td style="width:1%; text-align:left; vertical-align:middle" id="td_controls_sliders_thing">
<div data-dojo-type="dijit/form/DropDownButton" data-dojo-props='iconClass:"icon_btn_sliders_thing", showLabel: false, autoWidth:false' id="id_btn_sliders_thing" style="font-size: 85%">
<div data-dojo-type="dijit/TooltipDialog">
<div style="width:100%" align="center">
<span>Step : <span></span><b id="id_meters">150</b> meters</span> - </span><b id="id_feet">575</b> feet</span></span><br>
<div id="id_input_meters"
style="width:400px;"
name="horizontalSlider"
data-dojo-type="dijit/form/HorizontalSlider"
data-dojo-props="value:150,
minimum: 20,
maximum:1000,
discreteValues:50,
intermediateChanges:true,
showButtons:true"
onChange='require(["RouteView.js"], function( s ) { s.cb_step_changed(); })'>
</div>
<span>Interval : <b id="id_interval">750</b> <span id="id_interval_msec">milliseconds</span></span><br>
<div id="id_input_interval"
style="width:400px;"
name="horizontalSlider"
data-dojo-type="dijit/form/HorizontalSlider"
data-dojo-props="value:750,
minimum: 350,
maximum:10000,
discreteValues:194,
intermediateChanges:true,
showButtons:true"
onChange='require(["RouteView.js"], function( s ) { s.cb_interval_changed(); })'>
</div>
<div data-dojo-type="dijit/Tooltip" data-dojo-props="connectId:'id_input_meters',position:['after-centered'],showDelay:750,hideDelay:0">
This slider lets you define the step in the route.<br><br>
Default is 150 meters, meaning that each Street View image are 250 meters apart.
</div>
<div data-dojo-type="dijit/Tooltip" data-dojo-props="connectId:'id_input_interval',position:['after-centered'],showDelay:750,hideDelay:0">
This slider lets you define the time interval between each Street View image.<br><br>
Default is 750 milliseconds, meaning that each Street View image is displayed for 750 milliseconds.
</div>
</div>
</div>
</div>
<div data-dojo-type="dijit/Tooltip" data-dojo-props="connectId:'id_btn_sliders_thing',position:['above-centered'],showDelay:750,hideDelay:0">
This allows you to change Steps and Intervall between each image.
</div>
</td>
<td style="width:1%; text-align:left; vertical-align:middle" id="td_controls_map_pano_layout">
<div data-dojo-type="dijit/form/DropDownButton" data-dojo-props='iconClass:"icon_btn_map_pano_layout", showLabel: false, autoWidth:false' id="id_btn_map_pano_layout" style="font-size: 85%" disabled>
<div data-dojo-type="dijit/TooltipDialog">
<div style="width:100%" align="center">
<table>
<tr>
<td>
<button data-dojo-type="dijit/form/Button" data-dojo-props="iconClass:'icon_btn_map_pano_layout_1', selected: false"
onClick='require(["RouteView.js"], function( s ) { s.cb_map_pano_layout(1); })' id="btn_map_pano_layout_1" >
</button>
</td>
<td>
<button data-dojo-type="dijit/form/Button" data-dojo-props="iconClass:'icon_btn_map_pano_layout_2', selected: false"
onClick='require(["RouteView.js"], function( s ) { s.cb_map_pano_layout(2); })' id="btn_map_pano_layout_2" >
</button>
</td>
<td>
<button data-dojo-type="dijit/form/Button" data-dojo-props="iconClass:'icon_btn_map_pano_layout_3', checked: false"
onClick='require(["RouteView.js"], function( s ) { s.cb_map_pano_layout(3); })' id="btn_map_pano_layout_3" >
</button>
</td>
<td>
<button data-dojo-type="dijit/form/Button" data-dojo-props="iconClass:'icon_btn_map_pano_layout_4', checked: false"
onClick='require(["RouteView.js"], function( s ) { s.cb_map_pano_layout(4); })' id="btn_map_pano_layout_4" >
</button>
</td>
</tr>
</table>
</div>
</div>
</div>
<div data-dojo-type="dijit/Tooltip" data-dojo-props="connectId:'id_btn_map_pano_layout',position:['above-centered'],showDelay:750,hideDelay:0">
Change the layout Map / StreetView
</div>
</td>
<div data-dojo-type="dijit/Tooltip" data-dojo-props="connectId:'id_btn_map_pegman_layout',position:['above-centered'],showDelay:750,hideDelay:0">
Street View images settings
</div>
</td>
<td style="width:1%; text-align:left; vertical-align:middle" id="td_controls_pause">
<button dojoType="dijit.form.Button" type="button" id="id_btn_pause" disabled
onclick='require(["RouteView.js"], function( s ) { s.do_pause(); })'>
Pause
</button>
<div data-dojo-type="dijit/Tooltip" data-dojo-props="connectId:'id_btn_pause',position:['above-centered'],showDelay:750,hideDelay:0">
Once a route has been defined and you are playing this route through Google Street View,<br>
this allows you to pause / continue the playing of the route.
<br><br>
Note that you can still use the slider at the bottom of the screen to move to any location within the route.
</div>
</td>
<td style="width:1%; text-align:left; vertical-align:middle" id="td_controls_stop">
<button dojoType="dijit.form.Button" type="button" id="id_btn_stop" disabled
onclick='require(["RouteView.js"], function( s ) { s.do_stop(); })'>
Stop
</button>
<div data-dojo-type="dijit/Tooltip" data-dojo-props="connectId:'id_btn_stop',position:['above-centered'],showDelay:750,hideDelay:0">
Once a route has been defined and you are playing this route through Google Street View,<br>
this allows you to stop the playing of the route. Once stopped, a route can be restart (from the beginning)>br>
or cleared.
</div>
</td>
<td style="width:1%; text-align:left; vertical-align:middle" id="td_controls_duration"
onclick='require(["RouteViewMobile.js"], function( s ) { s.click_duration_distance(); })'>
</td>
<td style="width:96%; text-align:left; vertical-align:middle" id="id_td_input_route">
<div id="id_input_route"
style="width:100%;height:32px"
name="horizontalSlider"
data-dojo-type="dijit/form/HorizontalSlider"
data-dojo-props="value:0,
minimum: 0,
maximum:0,
discreteValues:0,
intermediateChanges:false,
clickSelect:true,
showButtons:false"
onChange='require(["RouteView.js"], function( s ) { s.cb_route_input(); })'
onMouseEnter='require(["RouteView.js"], function( s ) { s.cb_route_input_mouse_enter(); })'
onMouseLeave='require(["RouteView.js"], function( s ) { s.cb_route_input_mouse_leave(); })'
onBlur='require(["RouteView.js"], function( s ) { s.cb_route_input_mouse_leave(); })' >
</div>
<div data-dojo-type="dijit/Tooltip" data-dojo-props="connectId:'id_input_route',position:['above-centered'],showDelay:750,hideDelay:0">
Once a route has been defined, this slider can be used to move along any point of the route.<br>
This slider can be used either in Play mode, or when the route is Paused.
</div>
</td>
</tr>
<tr id="id_show_help" style="display:none">
<td colspan="3" style="width:100%; text-align:center; vertical-align:middle" >
<div>
Use the <b>Ctrl</b> key to bring a command dialog
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
<div id="id_hidden" style="display:none"></div>
<div id="id_map2_canvas" style="width: 100%; height: 100%; float:left" style="display:none"></div>
<script>
require(["RouteView.js", "dojo/ready"], function( s, ready ) {
ready( function() {
s.start( );
});
});
</script>
</body>
</html>