Commit graph

155 commits

Author SHA1 Message Date
Norbert Renner
a5f04dd9cd
Determine allowed zone from admin boundaries (#359) 2021-01-15 22:29:20 +01:00
Marcus Jaschen
5df0765d51
add support for allowed 15 km zone when German localization is active (#357) 2021-01-10 10:26:38 +01:00
alexcojocaru
3c1f5d0d6d Merge remote-tracking branch 'upstream/master' into heightgraph-transpiled 2020-12-21 21:26:53 -08:00
Gautier P
25429b3c24 Update prettier version 2020-12-05 11:51:16 +01:00
Gautier P
8ca602575c Do not override nogos on url load (#349) 2020-12-02 21:11:57 +01:00
Gautier P
5995e2e879 Do not crash if circlego is not enabled (#349) 2020-12-02 21:03:18 +01:00
Gautier P
779c720b7d
Add 20km allowed zone icon (#347)
Co-authored-by: Gautier P <gautier_git@damsy.net>
2020-12-01 20:56:14 +01: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
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
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
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
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
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
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
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
The Ripper
0d6cd61b1f
Load Track from file and add as Route (#312) 2020-06-19 18:19:42 +02:00
Henrik Fehlauer
e56d213931 Add shortcut to show about dialog
Press 'H' to get to the helpful about dialog.
2020-06-12 18:00:00 +00:00
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
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
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
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