Commit graph

227 commits

Author SHA1 Message Date
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
Henrik Fehlauer
eb8a7a9d36 Allow Return key to accept dialog when loading no-go areas or track as route
After ca53080e added Return key handling to the "Delete route" dialog, only
the "Load no-go areas" and "Load track as route" dialogs were still missing
similar functionality.

The implementation is based on 2a431932.

Test Plan:
- Open "Load no-go areas" or "Load track as route" dialog.
- Press Space or Return to open file dialog, choose file,
  Tab out of file input and press Return to confirm modal.
- Notice not having to Tab to the respective confirmation button.
2021-03-30 18:00:00 +00:00
Henrik Fehlauer
8b9fda47ad Show missing filename in load no-go areas dialog
5b52abc1 copied `<label>` and `<input>` from the `loadedittrackForm` for
consistency, but missed to add some corresponding code to `NoGoAreas.js`.

After completing the implementation, the filename for loading no-go areas is now
displayed after selecting a file just like in the "Load track as route" dialog.

Test Plan:
- Open "Load no-go areas" dialog.
- Browse and select file.
- The filename should now be shown next to "Browse".
2021-03-29 18:00:00 +00:00
Norbert Renner
a2717ac102 Fix search key 2021-03-27 20:12:42 +01:00
Marcus Jaschen
1b0daa8fce
fix for flickering search field on Firefox @ Android (#394) 2021-03-27 20:00:17 +01:00
Norbert Renner
fbcfd8cf8e Update leaflet-control-geocoder (#296)
Switch BR.Search to ES6 class because L.Control.Geocoder is now an ES6 class and Leaflet L.Class.extend doesn't work anymore (undefined).
2021-03-26 21:13:38 +01:00
Norbert Renner
dd34064e8c Increase file size limit for tracks, configurable
(abrensch/brouter#295)
2021-03-26 08:41:37 +01:00
Marcus Jaschen
d1285baa69 change keyboard shortcuts; update tooltips
- "Load Track as Route" is now triggered by pressing `Shift-O`
- "Load No-Go-Areas" is now triggered by pressing `Shift-N`
- tooltip for navbar link is updated an ready for translation
2021-03-25 07:58:51 +01:00
Marcus Jaschen
bc26eb3042 cleanup/remove unused option value 2021-03-24 11:45:14 +01:00
Marcus Jaschen
dcc5d3a554 add keyboard shortcut for opening route loader dialog
The route loader can be opened by pressing key 'r' now.
2021-03-24 11:43:57 +01:00
Norbert Renner
6a2da2064c Fix overpass layer not selected on hash init 2021-03-24 09:22:11 +01:00
Norbert Renner
ccd9fc51cc Remove ?data= from overpassBaseUrl 2021-03-24 09:06:10 +01:00
Norbert Renner
d3e344fd25
Merge pull request #383 from bagage/feat/improve-mobile
Feat/improve mobile
2021-03-19 18:10:30 +01:00
Gautier P
1c13587974
Update France Go area to 10km 2021-03-19 11:44:37 +01:00
Gautier P
51ed126a12 Rename dialog 2021-03-10 11:25:57 +01:00