Commit graph

137 commits

Author SHA1 Message Date
Henrik Fehlauer
e4e1c8a19e Add shortcut for clear route dialog
Use 'Backspace' to show the dialog allowing to clear the route.

The 'Del' key could then be used in the future to possibly allow to
delete individual selected items like POIs or no-go areas.
2020-06-07 18:00:00 +00:00
Henrik Fehlauer
48f8fe3524 Add shortcut to delete last point
Press 'Z' to undo adding the last point.
2020-06-05 18:00:00 +00:00
Henrik Fehlauer
37ab05310b Add shortcut for geocoder search field
Press 'F', type a query and press 'Enter' to find places effortlessly.

Note that the button already triggers on mousedown events, even though
by convention it should react on mouseup (i.e. a regular click)
only. However, that's an issue in the external dependency, and can
be worked around for now.
2020-06-02 18:00:00 +00:00
Marcus Jaschen
fc54c65e23 Add sidebar tab with route analysis data
- adds a new analysis tab in the sidebar
- the analysis tab shows length distribution for different way types, surface, and smoothness
- table rows can be hovered/clicked to highlight the according segments on the map (similar behaviour as the detailed data table)
- localization is implemented for `de` and `en`
- the method for finding segment edges was extracted from `js/control/TrackMessages.js` into `js/util/TrackEdges.js` as it's used in the new analysis class too (the Gulp config was changed to reflect that)

Notes:

I had the idea to use the *DataTable* plugin for rendering the tables but decided against it. The only meaningful way to sort such a table is by the length column and that's already the case. So it's just three plain, old HTML tables, rendered by jQuery.

For meaningful statistics the `processUnusedTags` setting has to be enabled in the routing profile. Only in this case the BRouter backend includes all needed tags (`highway`, `surface`, and `smoothness`) for *every* route segment in the response. I’ve enabled that setting for all profiles at my BRouter-web instance at <https://brouter.m11n.de/>.
2020-06-07 16:56:50 +02:00
Stefan Siegl
64202a451c
Allow to mute route 2020-06-06 21:47:58 +02:00
Norbert Renner
e5e876f717 Make privacy policy URL configurable (#284) 2020-05-28 10:54:08 +02:00
Norbert Renner
502735cb8e
Replace large awesome-markers with smaller vector-markers (#268) 2019-12-18 21:28:58 +01:00
Norbert Renner
3324f9c270 Move POI button below routing bar (#226) 2019-12-11 17:29:28 +01:00
Norbert Renner
a006d64a6d Don't show save warning in editor tab on options apply 2019-11-13 11:11:14 +01:00
Norbert Renner
ef9cc7abe7
Merge pull request #235 from Phyks/custom-profiles
First PoC for UI for customizing profile
2019-11-09 09:47:32 +01:00
Norbert Renner
ddf8e27085
Merge pull request #226 from bagage/222-add-users-poi
export user's POI (point of interest)
2019-10-10 22:17:44 +02:00
Gautier Pelloux-Prayer
fa5af58372 Add markers POI layer 2019-10-10 21:07:49 +02:00
Gautier Pelloux-Prayer
6a68482c0b Properly declare some variables 2019-10-10 21:07:42 +02:00
Matzepan
3a0a4498c2 moved button above opacity slider 2019-10-10 19:36:54 +02:00
Unknown
9eeca7e2d5 Added hotline based route overlay
Added a overlay which reflects the quality of the route based on either:
* cost
* altitude
* incline
2019-10-10 19:35:51 +02:00
Phyks (Lucas Verney)
f331773363 Cache custom profiles 2019-10-08 14:33:41 +02:00
Unknown
ff1499c62b If a track contains waypoints, they are set to the router 2019-10-02 16:16:29 +02:00
Unknown
936e5732b2 Implementation of Track loading
Use leaflet-filelayer to load kml, gpx, geojson, json tracks and display them as new Overlay layer.
2019-09-17 12:20:24 +02:00
Phyks (Lucas Verney)
0001d487a4 Let user delete route and/or nogo areas
Fix issue #217.
2019-08-15 21:25:18 +02:00
Gautier Pelloux-Prayer
d31be926d2 Increase prettier maxwidth to 120 2019-08-10 19:36:36 +02:00
Gautier Pelloux-Prayer
ba12f0d609 Extract nogo areas upload in BR.NogoAreas 2019-08-07 11:08:19 +02:00
Gautier Pelloux-Prayer
5a03b43099 Handle GeometryCollection in nogo areas upload 2019-08-07 10:39:36 +02:00
Gautier Pelloux-Prayer
a9d0b01ee2 Use CSS to display no go upload errors 2019-08-07 10:38:22 +02:00
Norbert Renner
ab467a94ab Improve opacity slider (#215)
- adopt horizontal styles
- common font size for layers tab
- adopt to layer switcher layout with slider as child of label element
- separate slider wrapper from control, as overlay slider is none
- migrate localStorage legacy key
2019-08-02 19:39:47 +02:00
Phyks (Lucas Verney)
7666daa10f Add an overlay opacity slider 2019-07-16 12:25:52 +02:00
Norbert Renner
ef41a9e5ff Restore active layers (#205) 2019-06-18 09:14:08 +02:00
Gautier Pelloux-Prayer
3aba471c0a Add track name 2019-05-18 23:46:08 +02:00
Gautier Pelloux-Prayer
970a34981f Add prettier and reformat code 2019-05-17 20:55:39 +02:00
Norbert Renner
1d1d75ddd3 Fix console errors by adding required callback, change icon (#179) 2019-05-15 21:38:30 +02:00
Gautier Pelloux-Prayer
a3b1a413b0 Replace undo icon 2019-05-14 23:03:26 +02:00
Gautier Pelloux-Prayer
191f6b25a8 Add delete last point button 2019-05-12 10:32:32 +02:00
Gautier Pelloux-Prayer
d009aa5bc6 Add reverse route button 2019-05-11 17:52:16 +02:00
Norbert Renner
79ce49fdb8
Merge pull request #177 from bagage/replace-pipe-url
Replace | with ; in URL
2019-05-10 19:09:11 +02:00
Phyks (Lucas Verney)
c58818e50b Fix for a few errors when loading nogos with weight
* Nogo weight was not set when loading nogos with a default weight
value.
* The URL would show up "NaN" values upon reloading the web interface
after having loaded some nogos.

Fix #174.
2019-05-10 08:50:38 +02:00
Gautier Pelloux-Prayer
05b958ab43 Replace | with ; in URL 2019-05-09 14:54:19 +02:00
Norbert Renner
430ec1cd38 Refactor StravaSegments init into plugin wrapper 2019-04-04 12:03:28 +02:00
Norbert Renner
eaba5a0821 Hide StravaSegments control when layer is not active 2019-04-04 11:50:46 +02:00
Norbert Renner
282edbbc01 Prevent unnecessary tile loading for default base layer
by only setting it if no layer activated by hash URL
2019-04-03 12:41:39 +02:00
Norbert Renner
d83ffa3fbc Support optional and custom layers in hash URL
- extend layer control to get current active layers (and more)
- access layer control in hash instead of static initial list
- use ',' layer separator and encode layers individually, so that comma
in layer name gets encoded and is not mistaken as separator as with '-'
2019-03-29 22:20:52 +01:00
Norbert Renner
68823fefb5
Merge pull request #163 from bagage/show-strava-error
Show strava error + update translations
2019-03-16 10:33:39 +01:00
Gautier Pelloux-Prayer
daa8abe810 Display strava error if any 2019-03-15 19:09:51 +01:00
Phyks (Lucas Verney)
e7db4a7aae Let user upload Nogos through GeoJSON file. 2019-03-15 18:18:43 +01:00
Gautier Pelloux-Prayer
1f81c043ad change locales path 2019-03-09 13:43:48 +01:00
Gautier Pelloux-Prayer
f54d72644b translate via i18next 2019-02-26 18:02:02 +01:00
Gautier Pelloux-Prayer
25e722fc6f Add Strava layer in overlays 2019-01-24 17:46:44 +01:00
Norbert Renner
5751792b49 Move strava token to keys file (#132) 2018-09-28 12:18:52 +02:00
Gautier Pelloux-Prayer
33e1d67b1f Add leaflet strava segments 2018-09-01 15:35:19 +02:00
Norbert Renner
9112d0984c Remove old layout Control superclass, now obsolete (#111) 2018-07-12 20:28:22 +02:00
Norbert Renner
1a078ae630 Add option to delete all nogos to clear route dialog 2018-06-27 09:50:58 +02:00
Norbert Renner
ce32c0da71 Add nogo button to routing bar 2018-06-27 09:17:45 +02:00