-
Notifications
You must be signed in to change notification settings - Fork 2
/
index-en.html
372 lines (357 loc) · 17.2 KB
/
index-en.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no" />
<meta name="author" content="Thomas Muguet" />
<meta name="robots" content="index,follow" />
<title>map2gpx by tmuguet</title>
<link rel="icon" type="image/png" sizes="72x72" href="ico/logo-medium-72.png" />
<link rel="apple-touch-icon" sizes="57x57" href="ico/logo-medium-57.png" />
<link rel="apple-touch-icon" sizes="72x72" href="ico/logo-medium-72.png" />
<link rel="apple-touch-icon" sizes="114x114" href="ico/logo-114.png" />
<link rel="apple-touch-icon" sizes="144x144" href="ico/logo-144.png" />
<link rel="alternate" hreflang="fr" href="https://map2gpx.fr/index.html" />
<link rel="alternate" hreflang="en" href="https://map2gpx.eu/index.html" />
<link rel="alternate" hreflang="x-default" href="https://map2gpx.eu/index.html" />
<meta property="og:title" content="map2gpx" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://map2gpx.eu/screenshot.png" />
<meta property="og:url" content="https://map2gpx.eu/index.html" />
<link rel="stylesheet" href="node_modules/jquery-ui-dist/jquery-ui.min.css" />
<link rel="stylesheet" href="node_modules/leaflet/dist/leaflet.css" />
<link rel="stylesheet" href="node_modules/leaflet-control-topcenter/dist/leaflet-control-topcenter.css" />
<link rel="stylesheet" href="node_modules/leaflet-minimap/dist/Control.MiniMap.min.css" />
<link rel="stylesheet" href="node_modules/leaflet-easybutton/src/easy-button.css" />
<link rel="stylesheet" href="node_modules/leaflet.awesome-markers/dist/leaflet.awesome-markers.css" />
<link rel="stylesheet" href="node_modules/leaflet-routing-machine/dist/leaflet-routing-machine.css" />
<link rel="stylesheet" href="node_modules/leaflet-control-geocoder/dist/Control.Geocoder.css" />
<link rel="stylesheet" href="node_modules/shepherd.js/dist/css/shepherd-theme-square.css" />
<link rel="stylesheet" href="dist/map2gpx.min.css" />
<link rel="stylesheet" href="dist-www/css/map2gpx.min.css" />
<script src="https://use.fontawesome.com/769d9e20e5.js"></script>
<script src="node_modules/jquery/dist/jquery.min.js"></script>
<script src="node_modules/jquery-ui-dist/jquery-ui.min.js"></script>
<script src="node_modules/leaflet/dist/leaflet.js"></script>
<script src="node_modules/leaflet-control-topcenter/dist/leaflet-control-topcenter.js"></script>
<script src="node_modules/leaflet-minimap/dist/Control.MiniMap.min.js"></script>
<script src="node_modules/leaflet-easybutton/src/easy-button.js"></script>
<script src="node_modules/leaflet.awesome-markers/dist/leaflet.awesome-markers.min.js"></script>
<script src="node_modules/leaflet-routing-machine/dist/leaflet-routing-machine.min.js"></script>
<script src="node_modules/@tmcw/togeojson/dist/togeojson.umd.js"></script>
<script src="node_modules/@mapbox/corslite/corslite.js"></script>
<script src="node_modules/promise-queue/lib/index.js"></script>
<script src="node_modules/leaflet-filelayer/src/leaflet.filelayer.js"></script>
<script src="node_modules/lrm-graphhopper/dist/lrm-graphhopper.min.js"></script>
<script src="node_modules/lrm-straightline/dist/lrm-straightline.min.js"></script>
<script src="node_modules/leaflet-trackdrawer/dist/leaflet.trackdrawer.umd.min.js"></script>
<script src="node_modules/leaflet-trackstats/dist/leaflet.trackstats.umd.min.js"></script>
<script src="node_modules/chart.js/dist/Chart.min.js"></script>
<script src="node_modules/chartjs-plugin-annotation/chartjs-plugin-annotation.min.js"></script>
<script src="node_modules/file-saver/dist/FileSaver.min.js"></script>
<script src="node_modules/togpx/togpx.js"></script>
<script src="node_modules/tokml/tokml.js"></script>
<script src="node_modules/leaflet-control-geocoder/dist/Control.Geocoder.js"></script>
<script src="node_modules/tippy.js/dist/tippy.min.js"></script>
<script src="node_modules/shepherd.js/dist/js/shepherd.min.js"></script>
<script src="dist/map2gpx.min.js"></script>
</head>
<body>
<div style="display: none">
<div id="help-welcome">
<p>
<img src="map2gpx.png" alt="map2gpx" style="float: right;" /> <strong>map2gpx</strong> lets you trace tracks
(for hiking for instance) and export them into GPX, KML or GeoJSON formats. You can import your own files to
display their data.<br />
On French territory, you can use <a href="https://map2gpx.fr">map2gpx.fr</a> for better results.
</p>
<hr />
<p>
To report an issue or suggest enhancements, feel free to open a ticket on
<a href="https://github.com/tmuguet/map2gpx" target="_blank" rel="noopener noreferrer">GitHub</a>.
</p>
</div>
<div id="help-layers">
<p>Several layers are available, from different providers.</p>
</div>
<div id="help-search">
<p>You can search for a location or an address to center the map on this place.</p>
</div>
<div id="help-autotrace">
<p>
To start tracing, click on <i class="fa fa-plus"></i>, and then click on the map to add a marker.<br />
Click again to add new way points. The track will be automatically computed based on known tracks.
</p>
<p>
<strong>Note:</strong> while tracing, use the button <span class="leaflet-control-zoom-in">+</span> to zoom
in.
</p>
</div>
<div id="help-straighttrace">
<p>
By default, tracing uses the <em>automatic</em> (<i class="fa fa-map-o"></i>) mode.<br />
In some cases, automatic mode may not work. You can enable the <em>line</em>
<i class="fa fa-compass"></i> mode to trace straight lines between the markers.
</p>
</div>
<div id="help-data">
<p>
This graphs displays the altitude and slope on the whole track. The slope is an estimation of the slope on the
track (i.e. the slope you have to climb/descend). This data, computed by this website, is provided with no
warranty.
</p>
</div>
<div id="help-closeloop">
<p>When you have 2 or more markers, you can close the loop via the <i class="fa fa-magic"></i> button.</p>
</div>
<div id="help-export">
<p>
Once done, you can export your track by clicking on the <i class="fa fa-cloud-download"></i> button.<br />
You can choose between GPX, KML (Google Earth) and GeoJSON formats.
</p>
</div>
<div id="help-movemarker">
<p>You can move markers by dragging them.</p>
<p>
When moving a marker, the track will be recomputed using the active mode (<em>automatic</em>
<i class="fa fa-map-o"></i> or <em>line</em> <i class="fa fa-compass"></i>).
</p>
</div>
<div id="help-deletemarker">
<p>
You can delete a marker by selecting the <i class="fa fa-eraser"></i> mode and clicking on the marker to
delete.
</p>
<p>
When deleting a marker, the track will be recomputed using the active mode (<em>automatic</em>
<i class="fa fa-map-o"></i> or <em>line</em> <i class="fa fa-compass"></i>).
</p>
</div>
<div id="help-promote">
<p>
You can define stop overs, by selecting the <i class="fa fa-pause-circle"></i> mode and clicking on the marker
to define as stop over.
</p>
</div>
<div id="help-steps2">
<p>You can click on any step and any marker to have an overview of its data.</p>
</div>
<div id="help-insert">
<p>
You can insert a marker by selecting the <i class="fa fa-plus-circle"></i> mode and clicking on an existing
track. You can then move the marker.
</p>
</div>
<div id="about" title="About & Credits">
<p>
This tool was created by
<a href="https://tmuguet.me" target="_blank" rel="noopener noreferrer">Thomas Muguet</a>, under MIT
license.<br />
Source code is freely available at
<a href="https://github.com/tmuguet/map2gpx" target="_blank" rel="noopener noreferrer">GitHub</a>.<br />
Current version: <span class="map2gpx-version"></span>
</p>
<hr />
<p>map2gpx uses:</p>
<ul class="columns-2">
<li>Maps from <a href="http://www.thunderforest.com" target="_blank" rel="noopener noreferrer">Thunderforest (OpenCycleMap, Outdoors)</a></li>
<li>Maps from <a href="http://opentopomap.org" target="_blank" rel="noopener noreferrer">OpenTopoMap</a></li>
<li>Maps from <a href="https://wmflabs.org" target="_blank" rel="noopener noreferrer">wmflabs.org (Hike & Bike, Hillshading)</a></li>
<li>Maps from <a href="https://openstreetmap.org" target="_blank" rel="noopener noreferrer">OpenStreetMap</a></li>
<li>Elevation API from <a href="https://open-elevation.com/" target="_blank" rel="noopener noreferrer">Open-Elevation</a></li>
<li>Geocoder API from <a href="https://wiki.openstreetmap.org/wiki/Nominatim" target="_blank" rel="noopener noreferrer">OpenStreetMap</a></li>
<li>
<a href="http://fontawesome.io" target="_blank" rel="noopener noreferrer">Font Awesome</a> by Dave Gandy
(SIL OFL 1.1)
</li>
<li><a href="http://jquery.com/" target="_blank" rel="noopener noreferrer">jQuery</a> (MIT license)</li>
<li><a href="http://jqueryui.com/" target="_blank" rel="noopener noreferrer">jQuery UI</a> (MIT license)</li>
<li>
<a href="http://leafletjs.com/" target="_blank" rel="noopener noreferrer">Leaflet</a> (BSD 2-clause
"Simplified" License)
</li>
<li>
<a href="https://github.com/FCOO/leaflet-control-topcenter" target="_blank"
rel="noopener noreferrer">leaflet-control-topcenter</a>
(MIT license)
</li>
<li>
<a href="https://github.com/Norkart/Leaflet-MiniMap" target="_blank"
rel="noopener noreferrer">Leaflet.MiniMap</a>
(BSD 2-clause "Simplified" License)
</li>
<li>
<a href="https://github.com/CliffCloud/Leaflet.EasyButton" target="_blank"
rel="noopener noreferrer">L.EasyButton</a>
(MIT license)
</li>
<li>
<a href="https://github.com/lvoogdt/Leaflet.awesome-markers" target="_blank"
rel="noopener noreferrer">Leaflet.AwesomeMarkers</a>
(MIT license)
</li>
<li>
<a href="http://www.liedman.net/leaflet-routing-machine/" target="_blank" rel="noopener noreferrer">Leaflet
Routing Machine</a>
(ISC License)
</li>
<li>
<a href="https://github.com/mapbox/togeojson" target="_blank" rel="noopener noreferrer">togeojson</a> (BSD
2-Clause "Simplified" License)
</li>
<li>
<a href="https://github.com/tyrasd/togpx" target="_blank" rel="noopener noreferrer">togpx</a> (MIT License)
</li>
<li>
<a href="https://github.com/mapbox/tokml" target="_blank" rel="noopener noreferrer">tokml</a> (BSD 2-Clause
"Simplified" License)
</li>
<li>
<a href="https://github.com/makinacorpus/Leaflet.FileLayer" target="_blank"
rel="noopener noreferrer">Leaflet.FileLayer</a>
(MIT License)
</li>
<li>
<a href="https://github.com/perliedman/lrm-graphhopper" target="_blank" rel="noopener noreferrer">Leaflet
Routing Machine / GraphHopper</a>
(ISC License)
</li>
<li>
<a href="https://github.com/tmuguet/lrm-geoportail" target="_blank" rel="noopener noreferrer">Leaflet Routing
Machine / GeoPortail</a>
(ISC License)
</li>
<li>
<a href="https://github.com/tmuguet/lrm-straightline" target="_blank" rel="noopener noreferrer">Leaflet
Routing Machine / Straight Line</a>
(ISC License)
</li>
<li>
<a href="https://github.com/perliedman/leaflet-control-geocoder" target="_blank"
rel="noopener noreferrer">Leaflet Control Geocoder</a>
(BSD 2-Clause "Simplified" License)
</li>
<li>
<a href="https://github.com/tmuguet/Leaflet.TrackDrawer" target="_blank"
rel="noopener noreferrer">Leaflet.TrackDrawer</a>
(MIT License)
</li>
<li>
<a href="https://github.com/tmuguet/Leaflet.TrackDrawer.FileLayer" target="_blank"
rel="noopener noreferrer">Leaflet.TrackDrawer.FileLayer</a>
(MIT License)
</li>
<li>
<a href="https://github.com/tmuguet/Leaflet.TrackStats" target="_blank"
rel="noopener noreferrer">Leaflet.TrackStats</a>
(MIT License)
</li>
<li>
<a href="http://www.movable-type.co.uk/scripts/latlong-vincenty.html" target="_blank"
rel="noopener noreferrer">Vincenty Formula</a>
(MIT License) and <a href="https://github.com/bullvinkle/Leflet.Vincenty" target="_blank"
rel="noopener noreferrer">its Leaflet implementation</a>
</li>
<li>
<a href="https://github.com/shipshapecode/shepherd" target="_blank" rel="noopener noreferrer">Shepherd</a>
(MIT license)
</li>
<li>
<a href="https://github.com/IGNF/geoportal-extensions" target="_blank" rel="noopener noreferrer">Extensions
Géoportail</a>
(CeCILL-B)
</li>
<li>
<a href="http://www.chartjs.org/" target="_blank" rel="noopener noreferrer">chart.js</a> (MIT license)
</li>
<li>
<a href="https://github.com/chartjs/chartjs-plugin-annotation" target="_blank"
rel="noopener noreferrer">chartjs-plugin-annotation.js</a>
(MIT license)
</li>
<li>
<a href="https://github.com/eligrey/FileSaver.js/" target="_blank" rel="noopener noreferrer">FileSaver.js</a>
(MIT license)
</li>
</ul>
</div>
</div>
<div id="map"></div>
<div id="chart"></div>
<div id="version" class="map2gpx-version"></div>
<script>
window.onload = function () {
$('.map2gpx-version').html('map2gpx v' + Map2gpx.getVersion());
var map = L.map('map', {
center: L.latLng(44.96777356135154, 6.06822967529297),
zoom: 13,
zoomControl: false,
});
var visibleLayers = {
'Thunderforest OpenCycleMap': L.tileLayer(
'https://tile.thunderforest.com/cycle/{z}/{x}/{y}{r}.png?apikey=bcecc6dc7a9a46cca6d1eff04dd595cf',
{
maxZoom: 18,
attribution:
'Maps © <a href="http://www.thunderforest.com">Thunderforest</a>, Data © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>',
}
),
};
var visibleOverlays = {};
var hiddenLayers = {
'Thunderforest Outdoors': L.tileLayer(
'https://tile.thunderforest.com/outdoors/{z}/{x}/{y}{r}.png?apikey=bcecc6dc7a9a46cca6d1eff04dd595cf',
{
maxZoom: 18,
attribution:
'Maps © <a href="http://www.thunderforest.com">Thunderforest</a>, Data © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>',
}
),
OpenTopoMap: L.tileLayer('https://a.tile.opentopomap.org/{z}/{x}/{y}.png', {
attribution:
'Map data: © <a href="https://openstreetmap.org/copyright">OpenStreetMap</a> contributors | Map display: © <a href="http://opentopomap.org">OpenTopoMap</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)',
}),
'Hike & Bike': new L.TileLayer('http://{s}.tiles.wmflabs.org/hikebike/{z}/{x}/{y}.png', {
maxZoom: 17,
attribution: 'Map Data: © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
}),
};
var hiddenOverlays = {
HillShading: new L.TileLayer('http://{s}.tiles.wmflabs.org/hillshading/{z}/{x}/{y}.png', {
maxZoom: 17,
attribution: 'Hillshading: SRTM3 v2 (<a href="http://www2.jpl.nasa.gov/srtm/">NASA</a>)',
}),
};
Map2gpx.controls.addLayers(map, visibleLayers, visibleOverlays, hiddenLayers, hiddenOverlays, map.shouldShowControls() ? 'native' : 'none');
var drawRoute = Map2gpx.controls.addTrackDrawer(
map,
L.TrackStats.openElevation(map),
new L.Control.Geocoder.Nominatim()
);
if (map.shouldShowControls()) {
Map2gpx.controls.addZoom(map);
Map2gpx.controls.addScale(map);
Map2gpx.controls.addGeocoder(map);
Map2gpx.controls.addImportExportButtons(map, drawRoute);
Map2gpx.controls.addTrackDrawerToolbar(map, drawRoute);
Map2gpx.controls.addTrackDrawerTracebar(map, drawRoute, {
routerAuto: L.Routing.graphHopper('29aa5bd4-23a6-489e-9bd0-67f8c9207d77', {
urlParameters: {
vehicle: 'foot',
},
}),
});
Map2gpx.controls.addMinimap(map, L.tileLayer('https://a.tile.openstreetmap.org/{z}/{x}/{y}.png'));
Map2gpx.controls.addMapCoordinatesButton(map);
Map2gpx.controls.addInfoToolbar(map);
}
Map2gpx.controls.addChart($('#chart'), map, drawRoute, {
showTerrainSlope: false,
});
if (map.shouldShowControls()) {
Map2gpx.controls.addTour(drawRoute);
}
};
</script>
</body>
</html>