Commit graph

746 commits

Author SHA1 Message Date
alexcojocaru
75b68ebfe1 add comments; clean up 2020-10-26 22:19:38 -07:00
alexcojocaru
bd0679d15c Fix conflicts in Heightgraph integration 2020-10-26 22:19:37 -07:00
alexcojocaru
77ed28cb76 Use Heightgraph transpiled 2020-10-26 22:19:37 -07:00
alexcojocaru
5fd3977768 Use Heightgraph in lieu of Elevation (part V)
- fix the grade calculation
- don't show the grade labels, as they are all over (should be normalized)
- fix the display issues by overridding the heightgraph CSS
2020-10-26 22:19:37 -07:00
alexcojocaru
8fcec8ec86 Use Heightgraph in lieu of Elevation (part IV)
Build the GeoJSON object manually.
2020-10-26 22:19:37 -07:00
alexcojocaru
37a0f9b972 Use Heightgraph in lieu of Elevation (part III)
- remove old comments and unusable commented out code
2020-10-26 22:19:36 -07:00
alexcojocaru
c17e6ed711 Use Heightgraph in lieu of Elevation (part II)
- Heightgraph supports resizing; remove the Elevation specific
  workaround which was readding the data
- resize the elevation chart on window resize and chart show
2020-10-26 22:19:36 -07:00
alexcojocaru
840f4daf72 Use Heightgraph in lieu of Elevation 2020-10-26 22:19:36 -07:00
dependabot[bot]
713d317ded
Bump node-fetch from 2.3.0 to 2.6.1 (#334)
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.3.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.3.0...v2.6.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-24 12:31:50 +02:00
Antonin Delpeuch
7c02d78f0b
Fix color coding by cost. Closes #340. (#341)
Fix color coding by cost. Closes #340.

This makes sure it is relative to the length of the path.
2020-10-24 12:28:26 +02:00
Gautier P
652de90c06 Remove unused variable 2020-09-26 08:39:46 +02:00
dependabot[bot]
ec19535325
Bump bootstrap-select from 1.13.0 to 1.13.6 (#333)
Bumps [bootstrap-select](https://github.com/snapappointments/bootstrap-select) from 1.13.0 to 1.13.6.
- [Release notes](https://github.com/snapappointments/bootstrap-select/releases)
- [Changelog](https://github.com/snapappointments/bootstrap-select/blob/v1.13.0-dev/CHANGELOG.md)
- [Commits](https://github.com/snapappointments/bootstrap-select/compare/v1.13.0...v1.13.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-04 15:08:18 +02:00
Norbert Renner
148262b16a Update leaflet-providers
Fixes unsafe site warning in Chrome for Hike & Bike hillshading layer (reported in BRouter Group)
2020-08-14 11:08:16 +02:00
Norbert Renner
7fd31a1dec release: 0.13.0 2020-08-04 17:46:01 +02:00
Norbert Renner
3089e2dba2 Update translations 2020-08-04 11:40:11 +02:00
Norbert Renner
54685524df Update CHANGELOG.md 2020-08-04 11:39:21 +02:00
Norbert Renner
a1af69a44c Prevent submit action to avoid side effects (#328)
Otherwise the download is blocked and a `/?format=gpx#` query is added to the URL in Chromium.
2020-08-04 11:13:24 +02:00
Norbert Renner
c3ac8345ee Add CyclOSM back for all (#290)
Use `pseudo_language_code` to keep it the default for French users, but not display the (wrong) language prefix in the layer tree.
2020-08-03 17:54:45 +02:00
Norbert Renner
b3b2c3194e Sync layers, add new Freemap.sk Outdoor layer 2020-08-03 10:36:15 +02:00
Tobias
2a43193295 Usability fix: Allow Return Key in export dialog 2020-08-02 11:20:26 +02:00
Norbert Renner
5704004d23
Consider guess > max points (#327)
Simply set max points to guess, assuming guess is always good
2020-07-31 22:08:43 +02:00
Norbert Renner
c432391e7a Update translations 2020-07-17 11:35:16 +02:00
Norbert Renner
1ce82ac3f0 Fix minor spelling 2020-07-17 11:31:53 +02:00
Norbert Renner
2747b2b3a2 Update changelog for 0.13.0 2020-07-16 10:55:57 +02:00
Norbert Renner
2df1f617c9 Improve hiding elevation chart when empty
Consider additional cases:
- flag got reset when deleting and adding first waypoint
- don't show empty on load, postpone to update
- don't store state when hidden because empty
2020-07-16 10:28:40 +02:00
Norbert Renner
b701a6f298 Refactor collapse handling into Elevation
as it's the only element it is intended for, sidebar uses separate handling.
2020-07-16 10:28:40 +02:00
Norbert Renner
fe6c0d784c Keep elevation button always visible (#320)
so that user stays in control.
2020-07-16 10:28:40 +02:00
Norbert Renner
90697ca38f Fix error when remembered tab does not exist
Caused by renaming `tab_statistics` to `tab_analysis`.
2020-07-14 10:22:00 +02:00
Norbert Renner
9500481df0 Sanitize track name (#312)
to prevent code in GPX getting executed like this:
<name>&lt;img src="xyz" onerror="alert('script executed')"></name>
2020-07-14 09:27:57 +02:00
Norbert Renner
dd4eb6c406
Merge pull request #321 from printpagestopdf/318-Relative-waypoint-limit-for-loading-as-route
Limited route points to max 200 or lower depending on track length
2020-07-08 21:33:37 +02:00
The Ripper
2c70b31376 artefacts removed 2020-07-08 10:47:44 +02:00
The Ripper
3f7e0fa66a iteration test for tolerance value 2020-07-07 16:44:18 +02:00
The Ripper
fb39962100 Limited route points to max 200 or lower depending on track length 2020-07-04 14:51:13 +02:00
Norbert Renner
11da0db2bb Set html lang attribute to translated language
Unfortunately doesn't seem to stop Chrome from still asking to translate page that already is in local language.
2020-07-02 23:16:17 +02:00
Norbert Renner
bacf60a3ba Optimize setWaypoints performance (#312)
Loading a track as route with lots of waypoints (simplify tolerance of 0) caused a long pause before even handling the first route request.

This seems to be caused by a repaint for every added marker/layer. Adding them all at once in FeatureGroup.addTo(map) helps (although still added in a loop).
2020-07-01 10:35:50 +02:00
Norbert Renner
4892c2a1db Don't update TrackAnalysis when tab is hidden
- add missing show/hide methods called by sidebar and maintain active state
- rename inconsistent tab id
2020-06-30 21:35:51 +02:00
Norbert Renner
5ad12a7c68 Refactor common track loading parts (#312)
- common track style
- TracksLoader now also adds points as POIs
- RouteLoaderConverter does not add route points as POI
2020-06-25 17:15:09 +02:00
Norbert Renner
fa59a44a5e
Merge pull request #317 from rkflx/pr/reuse-shortcut-translations
Combine and reuse translations for keyboard shortcuts
2020-06-22 16:28:44 +02:00
Henrik Fehlauer
09f987ea07 Combine and reuse translations for keyboard shortcuts
Using i18next's "nesting" and "interpolation" features should reduce the
overall number of strings to translate, as well as provide a
standardized pattern for shortcut tooltips (if applicable).

Note that this approach is still allowing for flexibility regarding
differently structured sentences in each language.

Resolves #315
2020-06-21 18:00:00 +00:00
Henrik Fehlauer
e3a9f6206f Switch to next tab with Shift+T shortcut even if tab is currently closed
Often users can remember what the recently opened tab was, so we can
switch to and open the next tab immediately, saving one keypress. There
is a dedicated shortcut (T) for only opening a tab, after all.

While the previous behavior for Shift+T (open tab without switching to
next if currently closed) was by intention, user testing found that the
new approach might be more desirable.
2020-06-20 18:00:00 +00:00
Norbert Renner
77f1b5f0af
Merge pull request #314 from rkflx/pr/add-and-fix-shortcuts
Add more keyboard shortcuts and fix various shortcut related issues
2020-06-19 21:26:13 +02:00
Henrik Fehlauer
f2dd3b95a4 Add warning regarding yarn build i18next / gulp i18next
Also mention what is done by maintainers.
2020-06-19 18:00:00 +00:00
The Ripper
0d6cd61b1f
Load Track from file and add as Route (#312) 2020-06-19 18:19:42 +02:00
Norbert Renner
007761b4b1 release: 0.12.0 2020-06-19 11:18:34 +02:00
Norbert Renner
1e18315e4f Update translations 2020-06-19 11:14:23 +02:00
Norbert Renner
38586faca9 Update changelog for 0.12.0 2020-06-18 20:25:56 +02:00
Henrik Fehlauer
8a66a816f7 Run yarn lint, yarn prettier and yarn build i18next
0d6cd61 was still missing some style fixes, making `yarn` touch
unrelated files on a subsequent `git commit`.
2020-06-18 18:00:00 +00:00
Norbert Renner
309f4bd33b Update leaflet-routing to bumped version commit
Yarn seems not to use latest commit, despite saying so, when version is unchanged.
2020-06-17 18:35:37 +02:00
Norbert Renner
de3d355c0c Add contact language hint to about dialog 2020-06-17 17:51:40 +02:00
Norbert Renner
ebaba664d2 Improve mobile stats (#302)
- flex-wrap instead of hard character break
- minimal margin
- add missing breakpoint for space
2020-06-17 10:39:53 +02:00