aboutsummaryrefslogtreecommitdiff
path: root/fietsboek/static/GM_Utils/GPX2GM_Defs.js
blob: 09428dc13a94063e30b9582125fb065622f987d1 (plain)
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
// Lizenz CC BY-NC-SA 4.0
// Jürgen Berkemeier
// www.j-berkemeier.de
// Platz für weitere Definitionen
// 30. 11. 2022

"use strict";

window.JB = window.JB || {};
window.JB.GPX2GM = window.JB.GPX2GM || {};

// Google Maps API Key
// JB.GPX2GM.GM_Api_key = "";
// Key für OSM Cycle
// JB.GPX2GM.OSM_Cycle_Api_Key = "";
// Key für OSM Landscape
// JB.GPX2GM.OSM_Landscape_Api_Key = "";
// Key für OSM Outdoors
// JB.GPX2GM.OSM_Outdoors_Api_Key = "";

//var Mapapi = "gm";
//var Bestaetigung = false;


// Definition der Icons, bei eigenen Icons nur Kleinbuchstaben verwenden.
JB.Icons = function(baseurl) {
	this.DefShadow	= { shadow: { anchor: {x:10,y:35}, url: baseurl+"Icons/shadow50.png" } };
	this.Bild				= { icon:   { anchor: {x: 6,y:31}, url: baseurl+"Icons/scenic.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	//this.MoveMarker	= { icon:   { anchor: {x: 6,y: 6}, url: baseurl+"Icons/marker.gif" } };
	this.MoveMarker	= { icon:   { anchor: {x: 6,y: 6}, url: baseurl+"Icons/marker.svg", 
											scaledSize: { width: 11, height: 11, widthUnit: "px", heightUnit: "px" },
											size: { width: 11, height: 11, widthUnit: "px", heightUnit: "px" } } };
	//this.Cluster		= { icon:   { anchor: {x:16,y:16}, url: baseurl+"Icons/cluster.png" } };
	this.Cluster 		= { icon:   { anchor: {x:16,y:16}, url: baseurl+"Icons/cluster.svg", 
											scaledSize: { width: 31, height: 31, widthUnit: "px", heightUnit: "px" },
											size: { width: 31, height: 31, widthUnit: "px", heightUnit: "px" } } };
	this.Streckenmarker 		= { icon:   { anchor: {x:11,y:11}, url: baseurl+"Icons/streckenmarker.svg", 
											scaledSize: { width: 21, height: 21, widthUnit: "px", heightUnit: "px" },
											size: { width: 21, height: 21, widthUnit: "px", heightUnit: "px" } } };
	this.Kreis			= { icon:   { anchor: {x:38,y:38}, url: baseurl+"Icons/kreis.png" } };
	this.marker_bw	= { icon:   { anchor: {x:12,y:37}, url: baseurl+"Icons/marker-icon_bw.png" } };
	this.CL   			= { icon:   { anchor: {x:26,y:26}, url: baseurl+"Icons/current_location.svg", 
											scaledSize: { width: 51, height: 51, widthUnit: "px", heightUnit: "px" },
											size: { width: 51, height: 51, widthUnit: "px", heightUnit: "px" } } };
	this.lodging		= { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/hotel2.png" },
	//this.lodging		= { icon:   { anchor: {x:15,y:31}, url: baseurl+"Icons/hotel.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	this.hotel = this.lodging;
	this.museum			= { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/museum.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	this.residence	= { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/villa.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	this.library		= { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/library.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	this.park				= { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/park.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	this.castle			= { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/castle.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	this.airport		= { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/airport.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	this.church			= { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/church2.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	this.bridge			= { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/bridge.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	this.bar				= { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/bar.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	this.restaurant	= { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/restaurant.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	this.start			= { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/start.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	this.finish			= { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/finish.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	this.cycling		= { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/cycling.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	this.hiking			= { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/hiking.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	this.flag				= { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/flag.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	this.harbor			= { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/harbor.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	this.anchor			= this.harbor;
	this.campground	= { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/tent.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	this.summit     = { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/peak.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	this.railway    = { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/train.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	this["shopping center"] = { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/shoppingmall.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	this["ground transportation"] = { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/subway.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	this["scenic area"] = { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/photo.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	this["boat ramp"]   = { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/boat.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	this.circle_red 		= { icon:   { anchor: {x:8,y:6}, url: baseurl+"Icons/circle_red.svg", 
											scaledSize: { width: 15, height: 15, widthUnit: "px", heightUnit: "px" },
											size: { width: 15, height: 15, widthUnit: "px", heightUnit: "px" } } };
	this.circle_green		= { icon:   { anchor: {x:8,y:8}, url: baseurl+"Icons/circle_green.svg", 
											scaledSize: { width: 15, height: 15, widthUnit: "px", heightUnit: "px" },
											size: { width: 15, height: 15, widthUnit: "px", heightUnit: "px" } } };
	this.square_red 		= { icon:   { anchor: {x:8,y:8}, url: baseurl+"Icons/square_red.svg", 
											scaledSize: { width: 15, height: 15, widthUnit: "px", heightUnit: "px" },
											size: { width: 15, height: 15, widthUnit: "px", heightUnit: "px" } } };
	this.square_green		= { icon:   { anchor: {x:8,y:8}, url: baseurl+"Icons/square_green.svg", 
											scaledSize: { width: 15, height: 15, widthUnit: "px", heightUnit: "px" },
											size: { width: 15, height: 15, widthUnit: "px", heightUnit: "px" } } };
											// Mit Dank an Hern Kuhn:
	this.video          = { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/video.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	this.panorama       = { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/panorama.png" },
											shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };

	//this.myicon       = { icon:   { anchor: {x:15,y:36}, url: baseurl+"Icons/myicon.png" },
	//                  shadow: { anchor: {x:10,y:31}, url: baseurl+"Icons/shadow.png" } };
	// Most Icons from https://mapicons.mapsmarker.com/
} ;   

JB.GPX2GM.setparameters = function() {  
	JB.GPX2GM.parameters = {};
	JB.GPX2GM.parameters.mapapi = (typeof(Mapapi)!="undefined") ? Mapapi : "osm";   // gm oder osm
	JB.GPX2GM.parameters.doclang = (typeof(Doclang)!="undefined") ? Doclang : "auto"; // de, fr oder en
	JB.GPX2GM.parameters.unit = (typeof(Unit)!="undefined") ? Unit : "si"; // enus oder en oder us oder air oder water = airwater
	JB.GPX2GM.parameters.showmaptypecontroll = (typeof(Showmaptypecontroll)!="undefined") ? Showmaptypecontroll : true;
	JB.GPX2GM.parameters.scrollwheelzoom = (typeof(Scrollwheelzoom)!="undefined") ? Scrollwheelzoom : true;
	JB.GPX2GM.parameters.fullscreenbutton = (typeof(Fullscreenbutton)!="undefined") ? Fullscreenbutton : false;
	JB.GPX2GM.parameters.currentlocationbutton = (typeof(Currentlocationbutton)!="undefined") ? Currentlocationbutton : false;
	JB.GPX2GM.parameters.trafficbutton = (typeof(Trafficbutton)!="undefined") ? Trafficbutton : false;
	JB.GPX2GM.parameters.trafficonload = (typeof(Trafficonload)!="undefined") ? Trafficonload : true;
	JB.GPX2GM.parameters.legende = (typeof(Legende)!="undefined") ? Legende : true;
	JB.GPX2GM.parameters.legende_fnm = (typeof(Legende_fnm)!="undefined") ? Legende_fnm  : true;
	JB.GPX2GM.parameters.legende_fnm_lm = (typeof(Legende_fnm_lm)!="undefined") ? Legende_fnm_lm  : false;
	JB.GPX2GM.parameters.legende_rr = (typeof(Legende_rr)!="undefined") ? Legende_rr  : true;
	JB.GPX2GM.parameters.legende_trk = (typeof(Legende_trk)!="undefined") ? Legende_trk : true;
	JB.GPX2GM.parameters.legende_rte = (typeof(Legende_rte)!="undefined") ? Legende_rte : true;
	JB.GPX2GM.parameters.legende_wpt = (typeof(Legende_wpt)!="undefined") ? Legende_wpt : true;
	JB.GPX2GM.parameters.legende_info = (typeof(Legende_info)!="undefined") ? Legende_info : false;
	JB.GPX2GM.parameters.gpxtracks = (typeof(Gpxtracks)!="undefined") ? Gpxtracks : true; 
	JB.GPX2GM.parameters.gpxrouten = (typeof(Gpxrouten)!="undefined") ? Gpxrouten : true; 
	JB.GPX2GM.parameters.gpxwegpunkte = (typeof(Gpxwegpunkte)!="undefined") ? Gpxwegpunkte : true;
	JB.GPX2GM.parameters.tracks_verbinden = (typeof(Tracks_verbinden)!="undefined") ? Tracks_verbinden : false;    
	JB.GPX2GM.parameters.tracks_dateiuebergreifend_verbinden = (typeof(Tracks_dateiuebergreifend_verbinden)!="undefined") ? Tracks_dateiuebergreifend_verbinden : false;
	JB.GPX2GM.parameters.tracksort = (typeof(Tracksort)!="undefined") ? Tracksort : true;
	JB.GPX2GM.parameters.dateitrenner = (typeof(Dateitrenner)!="undefined") ? Dateitrenner : ",";
	JB.GPX2GM.parameters.readspeed = (typeof(Readspeed)!="undefined") ? Readspeed : true;
	JB.GPX2GM.parameters.speedfaktor = (typeof(Speedfaktor)!="undefined") ? Speedfaktor : 3.6; // 3.6 bei m/s, 1,609344 bei mph, 1 bei km/h
	JB.GPX2GM.parameters.hfaktor = (typeof(Hfaktor)!="undefined") ? Hfaktor : 1; // Höhe
	JB.GPX2GM.parameters.sfaktor = (typeof(Sfaktor)!="undefined") ? Sfaktor : 1; // Steigung
	JB.GPX2GM.parameters.vfaktor = (typeof(Vfaktor)!="undefined") ? Vfaktor : 1; // Geschwindigkeit
	JB.GPX2GM.parameters.wfaktor = (typeof(Wfaktor)!="undefined") ? Wfaktor : 1; // Weg
	JB.GPX2GM.parameters.tfaktor = (typeof(Tfaktor)!="undefined") ? Tfaktor : 1; // Temperatur
	JB.GPX2GM.parameters.toffset = (typeof(Toffset)!="undefined") ? Toffset : 0; // Temperatur
	JB.GPX2GM.parameters.unwraplon = (typeof(Unwraplon)!="undefined") ? Unwraplon : true;
	JB.GPX2GM.parameters.trackover = (typeof(Trackover)!="undefined") ? Trackover : true;
	JB.GPX2GM.parameters.trackclick = (typeof(Trackclick)!="undefined") ? Trackclick : true;
	JB.GPX2GM.parameters.trackmarker = (typeof(Trackmarker)!="undefined") ? Trackmarker : "";
	JB.GPX2GM.parameters.routemarker = (typeof(Routemarker)!="undefined") ? Routemarker : "";
	JB.GPX2GM.parameters.shwpname = (typeof(Shwpname)!="undefined") ? Shwpname : true;
	JB.GPX2GM.parameters.shwptooltip = (typeof(Shwptooltip)!="undefined") ? Shwptooltip : false;
	JB.GPX2GM.parameters.shwpcmt = (typeof(Shwpcmt)!="undefined") ? Shwpcmt : true;
	JB.GPX2GM.parameters.shwpdesc = (typeof(Shwpdesc)!="undefined") ? Shwpdesc : false;
	JB.GPX2GM.parameters.shwptime = (typeof(Shwptime)!="undefined") ? Shwptime : false;
	JB.GPX2GM.parameters.shwpshadow = (typeof(Shwpshadow)!="undefined") ? Shwpshadow : true;
	JB.GPX2GM.parameters.wpcluster = (typeof(Wpcluster)!="undefined") ? Wpcluster : false;
	JB.GPX2GM.parameters.bildpfad = (typeof(Bildpfad)!="undefined") ? Bildpfad : "";
	JB.GPX2GM.parameters.gpxpfad = (typeof(Gpxpfad)!="undefined") ? Gpxpfad : ""; 
	JB.GPX2GM.parameters.defaulticon = (typeof(Defaulticon)!="undefined") ? Defaulticon : ""; 
	JB.GPX2GM.parameters.bildwegpunkticon = (typeof(Bildwegpunkticon)!="undefined") ? Bildwegpunkticon : "Bild"; // Bei "" Icon aus sym-Tag
	JB.GPX2GM.parameters.shtrcmt = (typeof(Shtrcmt)!="undefined") ? Shtrcmt : false;
	JB.GPX2GM.parameters.shtrdesc = (typeof(Shtrdesc)!="undefined") ? Shtrdesc : false;
	JB.GPX2GM.parameters.shtrx = (typeof(Shtrx)!="undefined") ? Shtrx : true;
	JB.GPX2GM.parameters.shtrt = (typeof(Shtrt)!="undefined") ? Shtrt : true;
	JB.GPX2GM.parameters.shtrtwob = (typeof(Shtrtwob)!="undefined") ? Shtrtwob : false;
	JB.GPX2GM.parameters.shtrtabs = (typeof(Shtrtabs)!="undefined") ? Shtrtabs : false;
	JB.GPX2GM.parameters.shtrtabs_k = JB.GPX2GM.parameters.shtrtabs_p = false;
	if(JB.GPX2GM.parameters.shtrtabs==true) JB.GPX2GM.parameters.shtrtabs_k = JB.GPX2GM.parameters.shtrtabs_p = true;
	if(typeof(JB.GPX2GM.parameters.shtrtabs)=="string" && JB.GPX2GM.parameters.shtrtabs.indexOf("k")>-1 ) JB.GPX2GM.parameters.shtrtabs_k = true;
	if(typeof(JB.GPX2GM.parameters.shtrtabs)=="string" && JB.GPX2GM.parameters.shtrtabs.indexOf("p")>-1 ) JB.GPX2GM.parameters.shtrtabs_p = true;
	JB.GPX2GM.parameters.shtrtges = (typeof(Shtrtges)!="undefined") ? Shtrtges : false;
	JB.GPX2GM.parameters.shtrtgeswob = (typeof(Shtrtgeswob)!="undefined") ? Shtrtgeswob : false;
	JB.GPX2GM.parameters.shtrv = (typeof(Shtrv)!="undefined") ? Shtrv : true;
	JB.GPX2GM.parameters.shtrpace = (typeof(Shtrpace)!="undefined") ? Shtrpace : false;
	JB.GPX2GM.parameters.shtrh = (typeof(Shtrh)!="undefined") ? Shtrh : true;
	JB.GPX2GM.parameters.shtrrr = (typeof(Shtrrr)!="undefined") ? Shtrrr : true;
	JB.GPX2GM.parameters.shtrs = (typeof(Shtrs)!="undefined") ? Shtrs : true;
	JB.GPX2GM.parameters.shtrhr = (typeof(Shtrhr)!="undefined") ? Shtrhr : true;
	JB.GPX2GM.parameters.shtrcad = (typeof(Shtrcad)!="undefined") ? Shtrcad : true;
	JB.GPX2GM.parameters.shtratemp = (typeof(Shtratemp)!="undefined") ? Shtratemp : true;
	JB.GPX2GM.parameters.shtrvmitt = (typeof(Shtrvmitt)!="undefined") ? Shtrvmitt : false;
	JB.GPX2GM.parameters.shtrvmittwob = (typeof(Shtrvmittwob)!="undefined") ? Shtrvmittwob : false;
	JB.GPX2GM.parameters.shtrvmittpace = (typeof(Shtrvmittpace)!="undefined") ? Shtrvmittpace : false;
	JB.GPX2GM.parameters.shtrvmittpacewob = (typeof(Shtrvmittpacewob)!="undefined") ? Shtrvmittpacewob : false;
	JB.GPX2GM.parameters.movevmin = (typeof(Movevmin)!="undefined") ? Movevmin : 1;
	JB.GPX2GM.parameters.arrowtrack = (typeof(Arrowtrack)!="undefined") ? Arrowtrack : false;
	JB.GPX2GM.parameters.arrowtrackcol = (typeof(Arrowtrackcol)!="undefined") ? Arrowtrackcol : "";
	JB.GPX2GM.parameters.shrtcmt = (typeof(Shrtcmt)!="undefined") ? Shrtcmt : false;
	JB.GPX2GM.parameters.shrtdesc = (typeof(Shrtdesc)!="undefined") ? Shrtdesc : false;
	JB.GPX2GM.parameters.shtrstart = (typeof(Shtrstart)!="undefined") ? Shtrstart : false;
	JB.GPX2GM.parameters.shtrziel = (typeof(Shtrziel)!="undefined") ? Shtrziel : false;
	JB.GPX2GM.parameters.shrtstart = (typeof(Shrtstart)!="undefined") ? Shrtstart : false;
	JB.GPX2GM.parameters.shrtziel = (typeof(Shrtziel)!="undefined") ? Shrtziel : false;
	JB.GPX2GM.parameters.arrowroute = (typeof(Arrowroute)!="undefined") ? Arrowroute : false
	JB.GPX2GM.parameters.arrowroutecol = (typeof(Arrowroutecol)!="undefined") ? Arrowroutecol : "";
	JB.GPX2GM.parameters.arrowsymbol = (typeof(Arrowsymbol)!="undefined") ? Arrowsymbol : "➤"; 
	JB.GPX2GM.parameters.groesseminibild	= (typeof(Groesseminibild)!="undefined") ? Groesseminibild : 60; // in Pixel, max. 149
	JB.GPX2GM.parameters.displaycolor = (typeof(Displaycolor)!="undefined") ? Displaycolor : false;
	JB.GPX2GM.parameters.laengen3d = (typeof(Laengen3d)!="undefined") ? Laengen3d : false;
	JB.GPX2GM.parameters.usegpxbounds = (typeof(Usegpxbounds)!="undefined") ? Usegpxbounds : false;
	JB.GPX2GM.parameters.hglattlaen = (typeof(Hglattlaen)!="undefined") ? Hglattlaen : 500; // in Meter
	JB.GPX2GM.parameters.vglattlaen = (typeof(Vglattlaen)!="undefined") ? Vglattlaen : 100; // in Meter
	JB.GPX2GM.parameters.vglatt = (typeof(Vglatt)!="undefined") ? Vglatt : false;
	JB.GPX2GM.parameters.hglatt = (typeof(Hglatt)!="undefined") ? Hglatt : false;
	JB.GPX2GM.parameters.tdiff = (typeof(Tdiff)!="undefined") ? Tdiff : 0; // in Stunden
	JB.GPX2GM.parameters.tkorr = (typeof(Tkorr)!="undefined") ? Tkorr : true;
	JB.GPX2GM.parameters.maxzoomemove = (typeof(Maxzoomemove)!="undefined") ? Maxzoomemove : 30; // 1 ... , 30: aus
	JB.GPX2GM.parameters.plotframecol = (typeof(Plotframecol)!="undefined") ? Plotframecol : "black";
	JB.GPX2GM.parameters.plotgridcol = (typeof(Plotgridcol)!="undefined") ? Plotgridcol : "gray";
	JB.GPX2GM.parameters.plotlabelcol = (typeof(Plotlabelcol)!="undefined") ? Plotlabelcol : "black";
	JB.GPX2GM.parameters.plotmarkercol = (typeof(Plotmarkercol)!="undefined") ? Plotmarkercol : "black";
	JB.GPX2GM.parameters.profilfillopac = (typeof(Profilfillopac)!="undefined") ? Profilfillopac : 0; //   0 ... 1, 0:aus
	JB.GPX2GM.parameters.trcolmod = (typeof(Trcolmod)!="undefined") ? Trcolmod : ""; // h s v hr cad
	JB.GPX2GM.parameters.tcols = (typeof(Tcols)!="undefined") ? Tcols : ["#ff0000","#00ff00","#0000ff","#eeee00","#ff00ff","#00ffff","#000000"]; // Trackfarben in #rrggbb für rot grün blau
	JB.GPX2GM.parameters.rcols = (typeof(Rcols)!="undefined") ? Rcols : ["#800000","#008000","#000080","#808000","#800080","#008080","#808080"]; // Routenfarben
	JB.GPX2GM.parameters.ocol = (typeof(Ocol)!="undefined") ? Ocol : "#000000";   // Track- und Routenfarbe bei Mouseover
	JB.GPX2GM.parameters.owidth = (typeof(Owidth)!="undefined") ? Owidth : 3.0;  // Linienstärke Track und Route bei Mouseover
	JB.GPX2GM.parameters.twidth = (typeof(Twidth)!="undefined") ? Twidth : 2.0;  // Linienstärke Track
	JB.GPX2GM.parameters.rwidth = (typeof(Rwidth)!="undefined") ? Rwidth : 2.0;  // Linienstärke Route
	JB.GPX2GM.parameters.topac = (typeof(Topac)!="undefined") ? Topac : 0.8;   // Transparenz Trackfarbe
	JB.GPX2GM.parameters.ropac = (typeof(Ropac)!="undefined") ? Ropac : 0.8;   // Transparenz Routenfarbe
	JB.GPX2GM.parameters.linktarget = (typeof(Linktarget)!="undefined") ? Linktarget : "";
	JB.GPX2GM.parameters.popup_Pars = (typeof(Popup_Pars)!="undefined") ? Popup_Pars : "width=900,height=790,screenX=970,screenY=0,status=yes,scrollbars=yes";
	
	if(JB.GPX2GM.parameters.tracks_dateiuebergreifend_verbinden) JB.GPX2GM.parameters.tracks_verbinden = true;
	if(typeof(JB.GPX2GM.parameters.tcols)=="string") JB.GPX2GM.parameters.tcols = JB.GPX2GM.parameters.tcols.split(",");
	if(typeof(JB.GPX2GM.parameters.rcols)=="string") JB.GPX2GM.parameters.rcols = JB.GPX2GM.parameters.rcols.split(",");

	if(JB.debuginfo) {
		var t = "";
		for(var o in JB.GPX2GM.parameters) t += "<br>&nbsp;&nbsp;" + o + ": " + JB.GPX2GM.parameters[o];
		JB.Debug_Info("Start","Globale Steuervariablen: "+t+"<br>",false);
	}
}

JB.GPX2GM.units = {};
JB.GPX2GM.units.si =  {
	way: "km",
	speed: "km/h",
	alt: "m",
	pace: "min/km",
	temp: "°C"
};
JB.GPX2GM.units.enus = JB.GPX2GM.units.us = JB.GPX2GM.units.en =  {
	way: "miles",
	speed: "mph",
	alt: "ft",
	pace: "min/mile",
	temp: "°C"
};
JB.GPX2GM.units.us.temp = "°F";
JB.GPX2GM.units.airwater = JB.GPX2GM.units.water =  {
	way: "sm",
	speed: "kn",
	alt: "ft",
	pace: "min/sm",
	temp: "°C"
};
JB.GPX2GM.units.air =  {
	way: "NM",
	speed: "kn",
	alt: "ft",
	pace: "min/NM",
	temp: "°C"
};

JB.GPX2GM.strings = {};
JB.GPX2GM.strings.de = {
	lenght: "L\u00e4nge",
	way: "Strecke",
	duration: "Dauer",
	tstart: "Startzeit",
	time: "Zeit",
	time_unit: "Stunden",
	altdiff: "H\u00F6hendifferenz",
	alt: "H\u00F6he",
	in: " in ",
	grade: "Stg.",
	grade_unit: "%",
	avspeed: "V<sub>m</sub>",
	speed2: "Geschw.",
	speed: "V",
	pace: "Pace",
	hr2: "Puls",
	hr: "HF",
	hr_unit: "1/min",
	cad: "Cadenz",  
	cad_unit: "UpM",
	temp: "Temperatur",
	wpt: "Wegpunkt",
	wpts: "Wegpunkte",
	pwpt: "Bildwegpunkt",
	trk: "Track",
	trks: "Tracks",
	rte: "Route",
	rtes: "Routen",
	inmo: "in Bewegung",
	// wait: "Bitte warten.<br />Daten werden geladen.",
	wait: "",  // Wartebild nehmen
	clkz: "Zum Zoomen klicken",
	zb: "Zurück zoomen",
	frage_datenschutz_gm: "Diese Seite verwendet Karten und ein Api von Google sowie möglicherweise auch OSM-Karten. Dadurch werden Besucherdaten an den jeweiligen Dienstanbieter übertragen. Mehr dazu im Impressum. Ist das OK?",
	antwort_datenschutz_gm: "Die Zustimmung zur Nutzung des Google Maps API wurde verweigert. Beim erneuten Laden der Seite können Sie ihre Meinung ändern.",
	frage_datenschutz_osm: "Diese Seite verwendet OSM-Karten. Dadurch werden Besucherdaten an den jeweiligen Dienstanbieter übertragen. Mehr dazu im Impressum. Ist das OK?",
	antwort_datenschutz_osm: "Die Zustimmung zur Nutzung der OSM-Karten wurde verweigert. Beim erneuten Laden der Seite können Sie ihre Meinung ändern.",
	fullScreen: "Full Screen",
	normalSize: "Normale Gr\u00F6\u00dfe",
	showCurrentLocation: "Aktuelle Position anzeigen",
	hideCurrentLocation: "Aktuelle Position verbergen",
	showTrafficLayer: "Verkehr anzeigen",
	hideTrafficLayer: "Verkehr verbergen",
	noMap: "Keine Karte",
	file: "Datei",
	showhide: "ein-/ausblenden",
	zoom: "auf Element zoomen",
	all: "Alle",
	showlist: "Liste anzeigen, bewegen in der Liste mit den Pfeiltasten"
}
// Französische Texte von Jean-Jacques und Pierre-Michel Sarton
JB.GPX2GM.strings.fr = {
	lenght: "Distance au point donné",
	way: "Distance totale",
	duration: "Durée totale",
	tstart: "Date du trajet",
	time: "Durée à ce point",
	time_unit: "heures",
	altdiff: "Dénivelés",
	alt: "Altitude", //"Altitude",
	//alt_unit: "m",
	in: " en ",
	grade: "Pente",
	grade_unit: "%",
	avspeed: "Vitesse moyenne",
	speed2: "Vitesse instantannée",
	speed: "V",
	pace: "Pace",
	hr2: "Pouls",
	hr: "Pouls",
	hr_unit: "1/min",
	cad: "Cadence", 
	cad_unit: "t/min",
	temp: "Température",
	wpt: "Waypoint",
	wpts: "Waypoints",
	pwpt: "PWaypoint de l'image",
	trk: "Tracé",
	trks: "Tracés",
	rte: "Itinéraire",
	rtes: "Itinéraires",
	inmo: "En mouvement",
	// wait: "Please wait.<br />Loading data.",
	wait: "",  // Wartebild nehmen
	clkz: "Cliquez pour agrandir",
	zb: "Retour du Zoom",
	frage_datenschutz_gm: "Cette page utilise des cartes et une API de Google et éventuellement aussi de cartes OSM. Cela transfère les données des visiteurs au fournisseur des services respectifs. Pour savoir plus voire les mentions légales. Est-ce que tout va bien ?",
	antwort_datenschutz_gm: "L'autorisation d'utiliser l'API Google Maps a été refusée. Vous pouvez changer d'avis lorsque vous rechargez la page.",
	frage_datenschutz_osm: "Cette page utilise des cartes OSM (OpenStreetMap). Les données des visiteurs sont transférées au fournisseur des services respectifs. En poursuivant votre navigation sur ce site, vous acceptez la transmission de vos informations",
	antwort_datenschutz_osm: "L'autorisation d'utiliser les cartes OSM a été refusée. Vous pouvez changer d'avis lorsque vous rechargez la page.",
	fullScreen: "Plein écran",
	normalSize: "Taille normale",
	showCurrentLocation: "Afficher la position actuelle",
	hideCurrentLocation: "cacher la position actuelle",
	showTrafficLayer: "Afficher le traffic",
	hideTrafficLayer: "Cacher le traffic",
	noMap: "Pas de carte",
	file: "File",
	showhide: "afficher/masquer",
	zoom: "zoom sur élément",
	all: "Tous",
	showlist: "afficher la liste, se déplacer dans la liste avec les touches fléchées"
}
JB.GPX2GM.strings.en = {
	lenght: "Length",
	way: "Way",
	duration: "Duration",
	tstart: "Start time",
	time: "Time",
	time_unit: "hours",
	altdiff: "Elevation difference",
	alt: "Elevation", //"Altitude",
	//alt_unit: "m",
	in: " in ",
	grade: "Grade",
	grade_unit: "%",
	avspeed: "V<sub>m</sub>",
	speed2: "Speed",
	speed: "V",
	pace: "Pace",
	hr2: "Heart rate",
	hr: "HR",
	hr_unit: "1/min",
	cad: "Cadence", 
	cad_unit: "rpm",
	temp: "Temperature",
	wpt: "Waypoint",
	wpts: "Waypoints",
	pwpt: "Picture Waypoint",
	trk: "Track",
	trks: "Tracks",
	rte: "Route",
	rtes: "Routes",
	inmo: "in motion",
	// wait: "Please wait.<br />Loading data.",
	wait: "",  // Wartebild nehmen
	clkz: "Click to zoom",
	zb: "Zoom back",
	frage_datenschutz_gm: "This page uses maps and an api from Google and possibly also OSM maps. This transfers visitor data to the respective service provider. Read more about this in the imprint. Is that all right?",
	antwort_datenschutz_gm: "Permission to use the Google Maps API has been denied. You can change your mind when you reload the page.",
	frage_datenschutz_osm: "This page uses OSM maps. This transfers visitor data to the respective service provider. Read more about this in the imprint. Is that all right?",
	antwort_datenschutz_osm: "Permission to use the OSM maps has been denied. You can change your mind when you reload the page.",
	fullScreen: "Full Screen",
	normalSize: "Normal Size",
	showCurrentLocation: "Show current location",
	hideCurrentLocation: "Hide current location",
	showTrafficLayer: "Show traffic",
	hideTrafficLayer: "Hide traffic",
	noMap: "No Map",
	file: "File",
	showhide: "show/hide",
	zoom: "zoom to element",
	all: "All",
	showlist: "show list, use the arrow keys to navigate in the list"
}
JB.GPX2GM.strings.es = {
	lenght: "Longitud",
	way: "Distancia",
	duration: "Duraci\u00F3n",
	tstart: "Hora de inicio",
	time: "Hora",
	time_unit: "horas",
	altdiff: "Diferencia de altitud",
	alt: "Altitud",
	in: " en ",
	grade: "Incl.",
	grade_unit: "%",
	avspeed: "V<sub>m</sub>",
	speed2: "Veloc.",
	speed: "V",
	pace: "Ritmo",
	hr2: "Pulso",
	hr: "HR",
	hr_unit: "1/min",
	cad: "Cadencia",
	cad_unit: "rpm",
	temp: "Temperatura",
	wpt: "Waypoint",
	wpts: "Waypoints",
	pwpt: "Imagen del Waypoint",
	trk: "Track",
	trks: "Tracks",
	rte: "Ruta",
	rtes: "Rutas",
	inmo: "en movimiento",
	// wait: "Por favor, espera.<br />Cargando datos."
	wait: "", // Wartebild nehmen
	clkz: "Clic para ampliar",
	zb: "Retroceder",
	frage_datenschutz_gm: "Esta p\u00E1gina utiliza mapas y un API de Google y posiblemente tambi\u00E9n mapas de OSM. Esto transfiere los datos de los visitantes al respectivo proveedor de servicios. Lea m\u00E1s sobre esto en el pie de imprenta. \u00BFEest\u00E1 bien as\u00ED?",
	antwort_datenschutz_gm: "El permiso para usar la API de Google Maps ha sido denegado. Puedes cambiar esta opci\u00F3n cuando recargues la p\u00E1gina",
	frage_datenschutz_osm: "Esta p\u00E1gina utiliza los mapas de OSM. Esto transfiere los datos de los visitantes al respectivo proveedor de servicios. Lee m\u00E1s sobre esto en el pie de imprenta. \u00BFEst\u00E1 bien as\u00ED?",
	antwort_datenschutz_osm: "Se ha denegado el permiso para utilizar los mapas de OSM. Puedes cambiar esta opci\u00F3n cuando recargues la p\u00E1gina",
	fullScreen: "Pantalla completa",
	normalSize: "Tamaño normal",
	showCurrentLocation: "Mostrar ubicaci\u00F3n actual",
	hideCurrentLocation: "Ocultar ubicaci\u00F3n actual",
	showTrafficLayer: "Mostrar tr\u00E1fico",
	hideTrafficLayer: "Ocultar tr\u00E1fico",
	noMap: "Ning\u00FAn Mapa",
	file: "Archivo",
	showhide: "mostrar/ocultar",
	zoom: "zoom a elemento",
	all: "Todo",
	showlist: "Mostrar lista, moverse en la lista con las teclas de flecha"
}
// Italienische Übersetzung von Paolo Ferrari
JB.GPX2GM.strings.it = {
	lenght: "Lunghezza",
	way: "Itinerario",
	duration: "Durata",
	tstart: "Orario inizio",
	time: "Tempo",
	time_unit: "Ore",
	altdiff: "Dislivello",
	alt: "Altitudine", //"Altitude",
	//alt_unit: "m",
	in: " en ",
	grade: "Pendenza",
	grade_unit: "%",
	avspeed: "Velocità media",
	speed2: "Velocità istantanea",
	speed: "V",
	pace: "Frequenza",  // ritmo
	hr2: "Frequenza cardiaca",
	hr: "HR",
	hr_unit: "1/min",
	cad: "Cadenza", 
	cad_unit: "rpm",
	temp: "Temperatura",
	wpt: "Waypoint",
	wpts: "Waypoints",
	pwpt: "Foto waypoint",
	trk: "Traccia",
	trks: "Tracce",
	rte: "Itinerario",
	rtes: "Itinerari",
	inmo: "In movimento",
	// wait: "Prego attendere.<br />Caricamento dati.",
	wait: "",  // Wartebild nehmen
	clkz: "Premere per ingrandire",
	zb: "Zoom precedente",
	frage_datenschutz_gm: "Questa pagina utilizza mappe e un'API di Google e possibilmente anche mappe OSM. Questo trasferisce i dati dei visitatori al rispettivo fornitore di servizi. Maggiori informazioni su questo nell'impressum. Siete d'accordo?", 
	antwort_datenschutz_gm: "L'autorizzazione a utilizzare l'API di Google Maps è stata negata. Puoi cambiare idea quando ricarichi la pagina. ", 
	frage_datenschutz_osm: "Questa pagina utilizza le mappe OSM. Questo trasferisce i dati dei visitatori al rispettivo fornitore di servizi. Maggiori informazioni su questo nell'impressum. Siete d'accordo?", 
	antwort_datenschutz_osm: "Il permesso di utilizzare le mappe OSM è stato negato. Puoi cambiare idea quando ricarichi la pagina. ", 
	fullScreen: "Schermo intero",
	normalSize: "Dimensione normale",
	showCurrentLocation: "Vedi posiione attuale",
	hideCurrentLocation: "Nascondi posizione attuale",
	showTrafficLayer: "Vedi traffico",
	hideTrafficLayer: "Nascondi il traffico",
	noMap: "Nessuna mappa",
	file: "File",
	showhide: "Mostra/nascondi",
	zoom: "Ingrandisci all'elemento",
	all: "Tutti",
	showlist: "mostra l'elenco, utilizza i tasti freccia per spostarti nell'elenco "
}
// Niederländische Übersetzung von Gerrit Hardemann
JB.GPX2GM.strings.nl = {
  lenght: "Lengte",
  way: "Afstand",
  duration: "Duurr",
  tstart: "Starttijd",
  time: "Tijd",
  time_unit: "Uren",
  altdiff: "Hoogteverschil",
  alt: "Hoogte",
  in: " in ",
  grade: "Helling",
  grade_unit: "%",
  avspeed: "V<sub>m</sub>",
  speed2: "Snelheid",
  speed: "V",
  pace: "Pas",
  hr2: "Puls",
  hr: "HF",
  hr_unit: "1/min",
  cad: "Cadans",  
  cad_unit: "UpM",
  temp: "Temperatuur",
  wpt: "Waypoint",
  wpts: "Waypoints",
  pwpt: "Fotopunt",
  trk: "Track",
  trks: "Tracks",
  rte: "Route",
  rtes: "Routen",
  inmo: "in Bewegung",
  // wait: "Bitte warten.<br />Daten werden geladen.",
  wait: "",  // Wartebild nehmen
  clkz: "Klik om te zoomen",
  zb: "Terug zoomen",
  frage_datenschutz_gm: "Deze site maakt gebruik van kaarten en een API van Google, en eventueel OSM maps. Als gevolg hiervan worden bezoekersgegevens doorgegeven aan de betreffende serviceprovider. Meer hierover in de imprint. Is dat OK?",
  antwort_datenschutz_gm: "Toestemming voor het gebruik van de Google Maps API is geweigerd. Wanneer u de pagina opnieuw laadt, kunt u van gedachten veranderen.",
  frage_datenschutz_osm: "Deze site maakt gebruik van OSM-kaarten. Als gevolg hiervan worden bezoekersgegevens doorgegeven aan de betreffende serviceprovider. Meer hierover in de imprint. Is dat OK?",
  antwort_datenschutz_osm: "Toestemming voor het gebruik van de OSM-kaarten werd geweigerd. Wanneer u de pagina opnieuw laadt, kunt u van gedachten veranderen.",
  fullScreen: "Volledig scherm",
  normalSize: "Normaal scherm",
  showCurrentLocation: "Huidige positie tonen",
  hideCurrentLocation: "Huidige postitie verbergen",
  showTrafficLayer: "Verkeer weergeven",
  hideTrafficLayer: "Verkeer verbergen",
  noMap: "Geen kaart",
  file: "Bestand",
  showhide: "Weergeven/verbergen",
  zoom: "Op Element inzoomen",
  all: "Alles",
  showlist: "Lijst weergeven, navigeer met de pijltjestoetsen"
}

/* // Autoscale in den Profilen abschalten
JB.Scaling = {   // nur paarweise verwenden
	hmin:0,hmax:1000,  // Höhenplot
	smin:-30,smax:30,  // Steigungsplot
	vmin:0,vmax:100,   // Geschwindigkeitsplot
	hrmin:50,hrmax:200,   // Herzfrequenz
	cadmin:0,cadmax:150,   // Trittfrequenz
	atempmin:-30,atempmax:50,   // Temperatur
	hardscaling:false   // Skalierwerte bindend (true) oder Minwerte(false)
}; */