Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
286 lines (271 loc) · 18.4 KB
/
Copy pathindex.html
File metadata and controls
286 lines (271 loc) · 18.4 KB
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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Mountain GPX — Waypoints automatiques sur votre trace GPX</title>
<meta name="description" content="Ajoutez automatiquement des waypoints (sommets, cols, refuges, points d'eau…) à votre trace GPX de randonnée ou de trail, depuis OpenStreetMap. Export GPX et TCX Garmin. Gratuit, 100 % dans le navigateur.">
<link rel="canonical" href="__SITE_URL__">
<link rel="alternate" hreflang="fr" href="__SITE_URL__">
<link rel="alternate" hreflang="en" href="__SITE_URL__en.html">
<link rel="alternate" hreflang="de" href="__SITE_URL__de.html">
<link rel="alternate" hreflang="es" href="__SITE_URL__es.html">
<link rel="alternate" hreflang="it" href="__SITE_URL__it.html">
<link rel="alternate" hreflang="x-default" href="__SITE_URL__">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Mountain GPX">
<meta property="og:url" content="__SITE_URL__">
<meta property="og:title" content="Mountain GPX — Waypoints automatiques sur votre trace GPX">
<meta property="og:description" content="Ajoutez automatiquement des waypoints (sommets, cols, refuges, points d'eau…) à votre trace GPX de randonnée ou de trail, depuis OpenStreetMap. Export GPX et TCX Garmin. Gratuit, 100 % dans le navigateur.">
<meta property="og:image" content="__SITE_URL__og-image.png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="Mountain GPX — Waypoints automatiques sur votre trace GPX">
<meta property="og:locale" content="fr_FR">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Mountain GPX — Waypoints automatiques sur votre trace GPX">
<meta name="twitter:description" content="Ajoutez automatiquement des waypoints (sommets, cols, refuges, points d'eau…) à votre trace GPX de randonnée ou de trail, depuis OpenStreetMap. Export GPX et TCX Garmin. Gratuit, 100 % dans le navigateur.">
<meta name="twitter:image" content="__SITE_URL__og-image.png">
<meta name="twitter:image:alt" content="Mountain GPX — Waypoints automatiques sur votre trace GPX">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "Mountain GPX",
"url": "__SITE_URL__",
"description": "Ajoutez automatiquement des waypoints (sommets, cols, refuges, points d'eau…) à votre trace GPX de randonnée ou de trail, depuis OpenStreetMap. Export GPX et TCX Garmin. Gratuit, 100 % dans le navigateur.",
"applicationCategory": "SportsApplication",
"operatingSystem": "Any",
"browserRequirements": "Requires JavaScript",
"inLanguage": ["fr", "en", "de", "es", "it"],
"isAccessibleForFree": true,
"offers": { "@type": "Offer", "price": "0", "priceCurrency": "EUR" },
"featureList": [
"Waypoints automatiques depuis OpenStreetMap (sommets, cols, refuges, sources, fontaines, lacs, cascades, points de vue)",
"Accrochage des points d'intérêt sur la trace GPX",
"Export GPX enrichi et TCX (parcours Garmin avec CoursePoints)",
"Roadbook imprimable et profil altimétrique",
"Application 100 % hors-ligne (PWA), aucun envoi de fichier"
]
}
</script>
<link rel="icon" type="image/svg+xml" href="icon.svg">
<meta name="theme-color" content="#0f1720">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="Mountain GPX">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<button id="menu-btn" class="menu-btn" type="button" data-i18n-aria-label="menu.open" aria-controls="sidebar" aria-expanded="false">
<svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="4" y1="7" x2="20" y2="7"/><line x1="4" y1="12" x2="20" y2="12"/><line x1="4" y1="17" x2="20" y2="17"/></svg>
</button>
<div id="backdrop" class="backdrop" hidden></div>
<aside id="sidebar">
<header class="brand">
<img class="logo" src="icon.svg" alt="" width="34" height="34">
<div>
<h1>Mountain GPX</h1>
<p class="tagline" data-i18n="brand.tagline">Waypoints automatiques</p>
</div>
<select id="lang-select" class="lang-select" data-i18n-aria-label="lang.aria"></select>
<button id="menu-close" class="menu-close" type="button" data-i18n-aria-label="menu.close">
<svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="6" y1="6" x2="18" y2="18"/><line x1="18" y1="6" x2="6" y2="18"/></svg>
</button>
</header>
<section class="panel">
<div id="dropzone" class="dropzone">
<input type="file" id="file-input" accept=".gpx,.fit,.tcx,.kml" hidden>
<p class="dz-icon">📂</p>
<p><strong data-i18n="dropzone.drop">Glissez votre trace GPX, FIT, TCX ou KML</strong><br><span data-i18n="dropzone.or">ou</span></p>
<button id="btn-open" class="btn btn-ghost" type="button" data-i18n="dropzone.openBtn" data-i18n-title="dropzone.openTitle">Choisir un fichier</button>
</div>
</section>
<section class="panel scroll">
<div class="panel-head">
<h2 data-i18n="panel.poiHeading">Points d'intérêt</h2>
<div class="bulk">
<button id="sel-all-with" class="link" type="button" data-i18n="bulk.all">Tout</button>
<button id="sel-none-with" class="link" type="button" data-i18n="bulk.none">Rien</button>
<button id="btn-defaults" class="link" type="button" data-i18n="bulk.default">Défaut</button>
</div>
</div>
<div id="poi-list"></div>
<details class="poi-group advanced">
<summary data-i18n="advanced.summary">Options avancées</summary>
<label class="field">
<span data-i18n="advanced.customLabel">Requête Overpass personnalisée</span>
<input type="text" id="overpass-custom" data-i18n-placeholder="advanced.customPlaceholder" placeholder='ex : way["leisure"="park"]'>
<small data-i18n-html="advanced.customHelp">Un seul élément, en <a href="https://wiki.openstreetmap.org/wiki/Overpass_API/Language_Guide" target="_blank" rel="noopener">Overpass QL</a>.</small>
</label>
<label class="field">
<span><span data-i18n="advanced.snapLabel">Distance max d'accrochage :</span> <b id="snap-dist-val">50 m</b></span>
<input type="range" id="snap-dist" min="10" max="500" step="10" value="50">
</label>
<label class="check">
<input type="checkbox" id="reverse"> <span data-i18n="advanced.reverse">Inverser le sens de la trace</span>
</label>
<div class="field">
<span data-i18n="advanced.milestones">Repères sur la trace</span>
<div class="milestone-row">
<select id="milestone-mode" data-i18n-aria-label="milestones.modeAria">
<option value="none" data-i18n="milestones.none">Aucun</option>
<option value="dist" data-i18n="milestones.dist">Distance (km)</option>
<option value="ele" data-i18n="milestones.ele">Dénivelé D+ (m)</option>
</select>
<input type="number" id="milestone-step" min="1" step="1" value="5" data-i18n-aria-label="milestones.stepAria" disabled>
</div>
</div>
</details>
<details class="poi-group custom-layers" id="custom-layers">
<summary data-i18n="customLayers.summary">Calques personnalisés</summary>
<p class="cl-help" data-i18n="customLayers.help">Ajoutez vos propres fonds de carte ou calques de tuiles (IGN, cadastre, pentes…). Ils sont mémorisés sur cet appareil et apparaissent dans le sélecteur de calques de la carte.</p>
<ul id="cl-list" class="cl-list"></ul>
<p id="cl-empty" class="cl-empty" data-i18n="customLayers.empty">Aucun calque personnalisé.</p>
<label class="field">
<span data-i18n="customLayers.nameLabel">Nom</span>
<input type="text" id="cl-name" data-i18n-placeholder="customLayers.namePlaceholder" placeholder="ex : IGN Plan">
</label>
<label class="field">
<span data-i18n="customLayers.urlLabel">URL des tuiles</span>
<input type="text" id="cl-url" data-i18n-placeholder="customLayers.urlPlaceholder" placeholder="https://…/{z}/{x}/{y}.png">
<small data-i18n="customLayers.urlHelp">Modèle XYZ en https, avec {z}/{x}/{y} ({s} pour les sous-domaines, {-y} pour l'axe inversé).</small>
</label>
<details class="cl-adv">
<summary data-i18n="customLayers.advanced">Zoom et opacité</summary>
<div class="cl-grid">
<label>
<span data-i18n="customLayers.minZoom">Zoom min</span>
<input type="number" id="cl-minzoom" min="0" max="24" step="1" placeholder="0">
</label>
<label>
<span data-i18n="customLayers.maxZoom">Zoom max</span>
<input type="number" id="cl-maxzoom" min="0" max="24" step="1" placeholder="19">
</label>
<label>
<span data-i18n="customLayers.maxNativeZoom">Zoom natif max</span>
<input type="number" id="cl-nativezoom" min="0" max="24" step="1" data-i18n-placeholder="customLayers.auto" placeholder="auto">
</label>
<label>
<span data-i18n="customLayers.opacity">Opacité</span>
<input type="number" id="cl-opacity" min="0.1" max="1" step="0.1" data-i18n-placeholder="customLayers.auto" placeholder="auto">
</label>
</div>
<small data-i18n="customLayers.zoomHelp">Le zoom natif max est le dernier niveau réellement servi par la source : au-delà, les tuiles sont agrandies au lieu de disparaître.</small>
</details>
<div class="cl-row">
<select id="cl-type" data-i18n-aria-label="customLayers.typeAria">
<option value="overlay" data-i18n="customLayers.typeOverlay">Calque</option>
<option value="base" data-i18n="customLayers.typeBase">Fond de carte</option>
</select>
<button id="cl-cancel" class="btn btn-ghost" type="button" hidden data-i18n="customLayers.cancel">Annuler</button>
<button id="cl-add" class="btn btn-ghost" type="button" data-i18n="customLayers.add">Ajouter</button>
</div>
</details>
<details class="poi-group about">
<summary data-i18n="about.title">À propos de Mountain GPX</summary>
<div class="about-body">
<p data-i18n="about.p1">Mountain GPX ajoute automatiquement des waypoints à une trace GPX de randonnée, de trail ou de VTT : sommets, cols, refuges, cabanes, sources, fontaines et points d'eau, lacs, cascades, points de vue… Les points d'intérêt proviennent d'OpenStreetMap et sont accrochés au plus près de votre parcours.</p>
<p data-i18n="about.p2">Importez votre fichier GPX (exporté de Strava, Komoot, Garmin Connect, VisuGPX, OpenRunner…), choisissez les types de points d'intérêt, puis téléchargez la trace enrichie en GPX ou en TCX (parcours Garmin avec CoursePoints typés) pour votre montre ou votre GPS.</p>
<p data-i18n="about.p3">L'outil est gratuit, sans inscription, et fonctionne entièrement dans le navigateur : votre fichier ne quitte jamais votre appareil. Installable comme application (PWA), il reste utilisable hors-ligne en montagne, avec un roadbook imprimable et un profil altimétrique.</p>
<p class="about-github" hidden>
<a id="github-link" target="_blank" rel="noopener">
<svg viewBox="0 0 16 16" width="15" height="15" fill="currentColor" aria-hidden="true"><path 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-.27s1.36.09 2 .27c1.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.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></svg>
<span data-i18n="about.github">Code source sur GitHub</span>
</a>
</p>
</div>
</details>
</section>
<footer class="actions">
<button id="btn-generate" class="btn btn-primary" type="button">
<span class="spinner"></span> <span data-i18n="btn.generate">Générer les waypoints</span>
</button>
<div class="actions-row">
<button id="btn-download" class="btn btn-ok" type="button" data-i18n="btn.download" disabled>⬇ Télécharger le GPX</button>
<button id="btn-download-tcx" class="btn btn-ok" type="button" data-i18n="btn.downloadTcx" disabled>⬇ Télécharger le TCX</button>
</div>
</footer>
</aside>
<main id="main">
<div id="toolbar" class="toolbar">
<span id="track-name" class="track-name" data-i18n="toolbar.noTrack">Aucune trace</span>
<div class="stats">
<span class="stat"><b id="stat-dist">—</b><small data-i18n="stat.distance">distance</small></span>
<span class="stat"><b id="stat-dplus">—</b><small data-i18n="stat.dplus">D+</small></span>
<span class="stat"><b id="stat-alt">—</b><small data-i18n="stat.altmax">alt. max</small></span>
<span class="stat"><b id="stat-wpt">0</b><small data-i18n="stat.waypoints">waypoints</small></span>
</div>
<div class="toolbar-btns">
<button id="btn-roadbook" class="rb-btn" type="button" hidden aria-controls="roadbook" aria-expanded="false" data-i18n-aria-label="roadbook.btn">
<svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="8" y1="6" x2="21" y2="6"/><line x1="8" y1="12" x2="21" y2="12"/><line x1="8" y1="18" x2="21" y2="18"/><circle cx="4" cy="6" r="0.5"/><circle cx="4" cy="12" r="0.5"/><circle cx="4" cy="18" r="0.5"/></svg>
<span data-i18n="roadbook.btn">Roadbook</span>
</button>
<button id="btn-share" class="rb-btn" type="button" hidden data-i18n-aria-label="share.btn" data-i18n-title="share.title">
<svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><line x1="8.6" y1="10.7" x2="15.4" y2="6.3"/><line x1="8.6" y1="13.3" x2="15.4" y2="17.7"/></svg>
<span data-i18n="share.btn">Partager</span>
</button>
</div>
</div>
<div id="map-wrap">
<div id="map"></div>
<aside id="roadbook" class="roadbook" data-i18n-aria-label="roadbook.title" aria-label="Roadbook">
<header class="rb-head">
<h2 data-i18n="roadbook.title">Roadbook</h2>
<div class="rb-actions">
<button id="rb-print" class="link" type="button" data-i18n="roadbook.print">Imprimer</button>
<button id="rb-close" class="rb-close" type="button" data-i18n-aria-label="roadbook.close">
<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="6" y1="6" x2="18" y2="18"/><line x1="18" y1="6" x2="6" y2="18"/></svg>
</button>
</div>
</header>
<div class="rb-print-head">
<b id="rb-track"></b>
<span id="rb-stats"></span>
</div>
<div id="roadbook-body" class="rb-body"></div>
</aside>
</div>
<div id="profile-wrap" class="profile-wrap empty">
<label id="profile-wpts-toggle-wrap" class="profile-toggle" hidden>
<input type="checkbox" id="profile-wpts-toggle" checked> <span data-i18n="profile.waypoints">Waypoints</span>
</label>
<svg id="profile" preserveAspectRatio="none"></svg>
</div>
<div id="overlay" class="overlay">
<div class="loader"></div>
<p id="overlay-msg" data-i18n="overlay.querying">Interrogation d'OpenStreetMap…</p>
</div>
</main>
<div id="share-modal" class="modal-backdrop" hidden>
<div class="modal" role="dialog" aria-modal="true" aria-labelledby="share-modal-title">
<header class="modal-head">
<h2 id="share-modal-title" data-i18n="share.modalTitle">Partager la trace</h2>
<button id="share-close" class="modal-close" type="button" data-i18n-aria-label="share.close">
<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="6" y1="6" x2="18" y2="18"/><line x1="18" y1="6" x2="6" y2="18"/></svg>
</button>
</header>
<div id="share-choice" class="share-choice">
<button id="share-link" class="share-option" type="button">
<svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>
<span class="share-option-text">
<b data-i18n="share.linkBtn">Copier le lien</b>
<small data-i18n="share.linkHelp">La trace et ses waypoints voyagent dans le lien — rien n'est envoyé sur un serveur.</small>
</span>
</button>
<button id="share-file" class="share-option" type="button" hidden>
<svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 3v5h5"/><path d="M19 8v11a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7z"/><path d="M12 17v-6"/><path d="M9.5 13.5 12 11l2.5 2.5"/></svg>
<span class="share-option-text">
<b data-i18n="share.fileBtn">Envoyer le fichier GPX</b>
<small data-i18n="share.fileHelp">Partage le fichier complet — sans simplification — via le menu de partage de l'appareil.</small>
</span>
</button>
</div>
</div>
</div>
<div id="toast" class="toast"></div>
<script type="module" src="./js/app.js"></script>
</body>
</html>