Commit graph

207 commits

Author SHA1 Message Date
Marcus Jaschen
b78e0e82ce Wrap long URLs in custom layers overlay 2023-06-02 08:06:55 +02:00
Marcus Jaschen
3b3357c473
Share Dialog with QR Code (#729) 2023-05-16 11:31:32 +02:00
quaelnix
a35814b8b3
Add seconds display in title attribute of total time (#696) 2023-02-16 18:44:05 +01:00
Tobias
8b311b1add Bugfix: TrackAnalysis selected edges lingered after route deletion 2022-11-05 20:05:40 +01:00
Tobias
260f34521e Bugfix: TrackMessage selected edge lingered after route deletion 2022-11-05 19:56:24 +01:00
Norbert Renner
b3e788eec4
Merge pull request #621 from tbsmark86/road-quality
Road surface as quality color + highlight matching row when hovering route on map
2022-11-03 11:55:22 +01:00
Tobias
aae95877b6 Replaced logic to find nearest segment with turf.nearestPointOnLine()
More accurate on routes that are shaped like an 'U' for whatever reason.
2022-11-02 20:26:32 +01:00
Tobias
f2d034ce8a Improved TrackMessages: highlight matching row when hovering route on map 2022-09-23 22:35:36 +02:00
Tobias
a376c4725c New info icons for export
* if format will include turns
* warning fit with server download
2022-09-14 21:02:50 +02:00
Tobias
3e81d80cc5 Added new export as FIT file format fixes #322
Actual FIT encoding logic created as a new repo "fit-file-writer"
2022-09-14 21:02:50 +02:00
Norbert Renner
4a31ebe112 Fix download click for Firefox < 75 (attach to DOM) 2022-06-29 10:01:45 +02:00
Norbert Renner
5cce9f92c2 Fix global assignments 2022-06-20 09:38:53 +02:00
Norbert Renner
13efb4864c Lazy load Maplibre GL JS and add hillshading layer 2022-06-14 10:00:13 +02:00
Norbert Renner
a57a560950 Fix default profile not selected with hash 2022-06-07 19:26:41 +02:00
Marcus Jaschen
8750c37901
Fix for incomplete/buggy solution for #494 (#553)
This commit fixes the incomplete/buggy implementation of the fix for #494.
Values are now converted to the expected format before returned from
`wayTagsNormalize()`.
2022-06-07 11:32:47 +02:00
Marcus Jaschen
4b5d08e5ed
fix for #494 (#550)
If a way segment contains more than one `surface` tags (e.g.
`surface=*` and `cycleway:surface=*`), the tag best suited for the
current routing type (currently only *cycling* is supported) is
selected.

i.e. if a `cycleway:surface=` tag belongs to the current way segment
it will be used for the analysis exclusively (all other `surface`
tags are skipped from now on).
2022-06-01 11:08:06 +02:00
Norbert Renner
0fc60c1821 Work around iOS 3rd party browser download (#418)
- use FileReader.readAsDataURL (for iOS Chromium)
- add alternative Download from Server for now until proven in Prod and fixed in iOS Firefox (no i18n)
- replace cloud icons as client-side now
2022-05-28 14:27:32 +02:00
Norbert Renner
1d26949770 Refactor download 2022-05-27 12:16:05 +02:00
Norbert Renner
e5ea9173ae
Merge pull request #497 from nrenner/68-sl-routing
Add straight line support to routing
2022-05-12 16:26:00 +02:00
Norbert Renner
6a19b53dc0 Add interpolated warning for stats with beeline 2022-04-11 19:24:48 +02:00
Norbert Renner
7bbbffbd3f Get selected profile vars despite pinned custom 2022-02-16 16:12:24 +01:00
Norbert Renner
4d44153316 Read time/energy calc variables from profile
and ensure profile text is loaded before updating route and straight line stats
2022-02-15 19:30:49 +01:00
Marcus Jaschen
d9699127f9 Highlight route segments for parts with normalized surface and smoothness values
This commit ensures that all matching route segments are highlighted when hovering over a surface or smoothness line in the analysis tables.
2021-11-20 14:17:20 +01:00
Marcus Jaschen
9ca93e4c03 Normalize surface and smoothness variants
The `surface` tag exists in different variants,
e.g. `surface`, `cycleway:surface` etc.

Previously, the `surface` and `smoothness` tags were only processed for route analysis if they were found in their canonical form in the BRouter server response.

With this commit, the variants are normalized down to the main tag name which has the effect that they're included in the route analysis.

Fixes #438
2021-11-20 13:46:14 +01:00
Marcus Jaschen
492797f2a5
Add OpenStreetMap Notes Layer (#458)
* use a local variable (best practices)

* Add OpenStreetMap notes as overlay.

This commit adds a new layer which renders OpenStreetMap notes in the
current view.

The layer can be activated via the "More" button in the layers sidebar.

Fixes #439
2021-11-17 20:03:07 +01:00
Marcus Jaschen
f1557a1d5c remember and recall last used (non-custom) profile 2021-11-15 19:00:40 +01:00
Norbert Renner
f185d78dca Support undefined highway tag for beelines 2021-06-29 21:51:28 +02:00
Norbert Renner
3c8be96085 Support beelines in hash url (first stab) 2021-06-19 16:23:01 +02:00
Norbert Renner
c3db03d1e3 Keep ele when removing duplicates on concat 2021-06-11 12:01:10 +02:00
Norbert Renner
1330317f1d Merge branch 'master' into 68-sl-formatting 2021-04-10 12:48:10 +02:00
Norbert Renner
393a3fa129 Cleanup and credits 2021-04-09 11:52:51 +02:00
Norbert Renner
c3abfa9c9a Show overpass icons in layer tree 2021-04-07 18:05:47 +02:00
Norbert Renner
7aa2fcb93c Download in client from Blob URL 2021-04-01 23:42:56 +02:00
Henrik Fehlauer
7edae911dc Select parts of trackname in export dialog for easier overwriting
Users might want to assign custom tracknames, which requires deleting the
default name either entirely or parts of it.

By pre-selecting parts of the trackname, users can start typing right away
after opening the dialog. `Ctrl+A` to select everything is still possible,
but keeping the distance in the filename by default comes in handy,
e.g. when using a file manager not displaying the track length.

NB: Might need adaptation once trackname validation becomes less strict,
i.e. currently "(" and "->" as specified in the message catalog are replaced
with ' - ' by the validator before being inserted into the dialog.

Test Plan:
- Open "Export" dialog ("Location - Other Location - 2km")
- Open "Export" dialog for roundtrip ("Location - 1km")
- In both cases the complete trackname except for the distance
  information (including separator) should be selected.
- No unwanted behaviour even if Nominatim is slow or down.
2021-04-01 18:00:00 +00:00
Norbert Renner
0fc468a682 Format CSV 2021-04-01 12:17:18 +02:00
Norbert Renner
00f2cead36 Format KML 2021-04-01 11:53:17 +02:00
Norbert Renner
9f5cb05532 Show specific message type for loading 2021-03-24 09:32:49 +01:00
Gautier P
83ac111262 Remove whatsnew icon when modal is displayed or dismissed 2021-03-23 16:29:04 +01:00
Gautier P
cb9f4fd85d Fix error/warning messages display 2021-03-23 11:06:35 +01:00
Norbert Renner
265583e0c5 Format name and creator 2021-03-19 12:22:20 +01:00
Stefan Siegl
06f0be719d
allow to add custom overpass queries 2021-03-19 11:45:23 +01:00
Norbert Renner
da9ffd9224 Format POIs 2021-03-19 10:23:37 +01:00
Norbert Renner
7fc2f6bee5 Format route points as waypoints 2021-03-18 18:04:57 +01:00
Norbert Renner
2189d68af9 Parse voicehint modes form profile 2021-03-16 19:56:02 +01:00
Norbert Renner
25f8828ae7 Concatenate total track
+ handle server voicehint time removed, times with 3 digits
2021-03-12 21:20:35 +01:00
Gautier P
a0a78cdab2
Translate overlay type and fix width computation (#379) 2021-03-01 20:19:38 +01:00
Gautier P
e188d8f9de
Use plural form when multiple overlays are active (#378) 2021-03-01 20:13:42 +01:00
Gautier P
1a695db333
Add What's new modal (#372) 2021-02-23 18:27:08 +01:00
Gautier P
25429b3c24 Update prettier version 2020-12-05 11:51:16 +01:00
Gautier P
a2366a26bd Split ring in two to avoid routing issue 2020-12-03 21:04:55 +01:00