Commit graph

241 commits

Author SHA1 Message Date
Simon Legner
76f31aeb2b refact: use shorthand method and property syntax 2024-10-19 13:44:15 +02:00
Marcus Jaschen
6b24a8790e add 'break' to switch to prevent fall-through 2024-07-02 18:23:19 +02:00
alexcojocaru
12dc322a54 Disable gradient normalization in profile; add legend 2024-06-01 16:30:36 +02:00
alexcojocaru
135340781d Update the geo-data-exchange dependency with support for gradient normalization 2024-06-01 16:30:36 +02:00
Norbert Renner
43b1b70a0a Don't filter points of GeoJSON layer (#727) 2023-05-17 12:27:23 +02:00
Norbert Renner
89ecdcd84f Disable cost gradients and simplification (#693) 2023-02-20 12:48:42 +01:00
quaelnix
c2ef8e83ec
Improve 'route quality cost' color coding (#693)
This improves the color coding of the 'route quality cost' overlay by omitting 5% of the largest cost values when calculating min-max values.
2023-02-20 12:08:39 +01:00
Tobias
db2c43c973 Incorporated review feedback 2022-09-23 22:35:36 +02:00
Tobias
39aa813ea1 Added new quality mode: surface type
Required fork of leaflet-hotline with a new option to disable the
gradient display.
This is was done so that short stretches of very bad surface adjacent to
very good ones are visible.

Also note the eslint-disable-line for this compat warning:
  URLSearchParams is not supported in Safari 7, op_mini all, IE 10, android 4.1
don't seem relevant today because those are EOL for a long time now.
2022-08-28 11:46:59 +02:00
Norbert Renner
b894639c2f Prevent sporadic canvas mouseout bubbling to map
Fixes #561
2022-06-21 20:37:02 +02:00
Norbert Renner
198f65e5bc Disable preloading states to reduce traffic on start 2022-06-01 16:53:23 +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
99a00e5948 Allow empty name with client-side formatting (#454) 2022-05-24 22:00:59 +02:00
Norbert Renner
89d9e8763a Run prettier after update 2022-05-18 15:53:09 +02:00
Norbert Renner
35c4b6ab87 Fix trailer not hidden on segment hover 2022-05-16 13:13:09 +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
d8e0e8ee09 Simplify response check, beeline has feature now 2022-05-06 15:27:46 +02:00
Norbert Renner
31916c2cae Omit beelines in quality coding 2022-05-06 09:43:37 +02:00
Norbert Renner
72588f3fd9 Only use Canvas for routing segments
Routing trailers are lagging behind and Canvas by default might have side effects (Plugins)
2022-05-04 22:21:51 +02:00
Norbert Renner
855dc81283 Show gap in elevation graph for single beeline 2022-05-02 10:55:20 +02:00
Norbert Renner
7f481b8db3 Pass estimated cost factor to kinematic calc
(only to use different formula > 4.9)
2022-04-26 12:41:41 +02:00
Norbert Renner
c122b31e73 Replace ??=, not supported by i18next-scanner 2022-04-11 18:59:28 +02:00
Norbert Renner
42d8b27266 Add time and energy to messages 2022-04-11 18:37:40 +02:00
Norbert Renner
5dd801d714 Interpolate cost by using max of neighbours 2022-04-09 11:55:56 +02:00
Norbert Renner
2f8ddfa9e7 Interpolate ascend stats 2022-04-06 11:51:20 +02:00
Norbert Renner
30f8a88957 Interpolate stats over consecutive beelines 2022-04-01 14:30:08 +02: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
Norbert Renner
9abf4b94c4 Calc stats for straight line 2022-02-07 17:52:16 +01:00
Marcus Jaschen
5ec72901f1 don't store empty search queries to search favorites 2021-11-15 19:00:54 +01:00
Marcus Jaschen
1551fec917 Husky fixes for Search/SearchFavorites 2021-11-15 19:00:54 +01:00
The Ripper
05ff4bd430
Favorite list for search (geocode control) (#452)
* search favorites

Adds the ability to save search terms, use this for autoexpand during
typing in searchbox or select from whole list

* moved class vars to contructor

Co-authored-by: Karl Schweiger <kschweiger@directbox.com>
2021-10-13 19:39:48 +02:00
Norbert Renner
fe05081678 Add beeline support to distance markers
- update on beeline toggle
- avoid distance markers wandering accross the map while routing many waypoints, because beelines are added immediately, by turning off updates in-between
2021-07-02 19:44:43 +02:00
Norbert Renner
7118cc70d7 Show empty cells in data tab instead of 0
which makes it more clear that there is no data
2021-07-01 12:05:16 +02:00
Norbert Renner
9f4a4983c5 Support beelines on reverse 2021-07-01 12:02:49 +02:00
Norbert Renner
39f3a10965 Support beelines in data and analysis tabs (WIP) 2021-06-25 22:33:11 +02:00
Norbert Renner
3c8be96085 Support beelines in hash url (first stab) 2021-06-19 16:23:01 +02:00
Norbert Renner
f3d48dc63e Add message headings to fix error in data tab 2021-06-12 11:19:57 +02:00
Norbert Renner
cafb87cc6e Add basic beeline support by dummy feature 2021-06-09 17:04:11 +02:00
Gautier P
ddfa439998 Ensure poi name is set (#427) 2021-06-06 14:55:57 +02:00
Norbert Renner
eb8492e30d Fix loading trailer animation 2021-06-03 20:30:08 +02:00
Norbert Renner
7c1347668d Prevent trailer showing on beeline button clicks 2021-05-21 17:43:52 +02:00
Norbert Renner
91108bc334 Fix hidden routing marker still being interactive 2021-05-20 21:02:31 +02:00
Norbert Renner
47f3a06be6 Improve route interactivity by using canvas 2021-05-20 13:11:18 +02:00
Marcus Jaschen
7850e97eed
replace native HTML tooltip for custom POIs with Leaflet Tooltip (#415)
- the tooltip shows instantly when hovering a POI icon with the mouse cursor
- the content is the same as for the popup, except for the action button (“delete”) as the button isn't reachable by the mouse (the tooltip disappears when the mouse cursor leaves the icon area)
- (maybe we should add a hint to the tooltip, e.g. “Click icon for actions” (TBD))
- the tooltip is only attached to POI icons on devices without a touch interface, i. e. when `BR.Browser.touch` is `false`
- the tooltip is removed when the icon is clicked, otherwise tooltip and popup would be visible at the same time
- the tooltip is enabled again when the popup is closed
2021-05-14 19:33:39 +02:00
Marcus Jaschen
93af0656fa
add tooltip with POI name to POI icons (#414) 2021-05-14 10:31:55 +02:00
Gautier P
5e14484302
I18n nogo areas errors (#413) 2021-05-13 17:02:18 +02:00
Gautier P
7abd8d61dc Fix nogo area loading via URL (#405) 2021-05-08 15:54:47 +02:00
Norbert Renner
6ea972bcf8 Avoid accidental zooms while drawing beeline 2021-04-30 18:30:01 +02:00
Norbert Renner
b4368c1f51 Toggle beeline mode and style beeline
Restore removed key listeners of super class to avoid duplicate calls (36d8a20)
2021-04-29 20:41:38 +02:00
Norbert Renner
acf9c59888 Initial take on supporting straight line segments 2021-04-16 19:07:52 +02:00