Commit graph

147 commits

Author SHA1 Message Date
Norbert Renner
71317b84e4 Fix analysis sorting
Return value of the sort compare function is defined as value less, equal or greater than 0, not as boolean.
2020-06-12 10:57:41 +02: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
1b66989cfb
Merge pull request #292 from tbsmark86/master
Fix: Profile params of type 'select' ignored default value from profile
2020-05-27 08:27:35 +02:00
Gautier P
bbaad4f8b3 Hide stats footer by default and collapse elevation chart if needed 2020-05-25 20:22:49 +02:00
Gautier P
a358aed464 Improve stats footer on mobile #296 2020-05-24 19:50:14 +02:00
Gautier P
52be57f5ba Always display 3 digits for distance title, even when ending with zeros 2020-05-24 19:23:00 +02:00
Tobias
3457f92fbf Fix: Profile params of type 'select' ignored default value from profile 2020-05-13 17:14:53 +02:00
Norbert Renner
86d42de458 Show icon indicator when profile is pinned (modified in editor) 2020-02-07 20:02:32 +01:00
Norbert Renner
c94a530f49 Fix overwriting editor changes when switching profile tabs 2020-02-06 20:27:57 +01:00
Norbert Renner
07425148ee Set custom profileName after post
Otherwise next cache get after tab switching still uses original profile
2020-02-05 19:59:55 +01:00
Norbert Renner
164431dccb Fix "Layer not found: route-quality" error msg (ignore built-in layers) 2020-01-08 19:13:15 +01:00
Norbert Renner
83ffa4091d Fix errors when profilesUrl is not defined in config (text undefined) 2020-01-02 13:36:33 +01:00
Norbert Renner
d33c795200 Show data table highlight above quality coding layer (#242) 2019-12-12 12:24:43 +01:00
Norbert Renner
a71dfe7895
Add hints and feedback for optional layers tree usage (#263) 2019-12-06 09:31:55 +01:00
Norbert Renner
0781bb85dc Use Polyline.getCenter instead of bounds to center hover on map (#241)
Returns point on line at half distance instead of centroid of bounds,
which can be far off the line for curved lines and not show line at high
zooms.
2019-11-30 12:28:48 +01:00
Norbert Renner
b57c4f2bf6 Make data row selectable, centers on map, disables hover sync (#241) 2019-11-30 12:18:15 +01:00
Norbert Renner
a585dde182 Add switch to turn off centering hovered data table entry on map (#241) 2019-11-30 09:38:12 +01:00
Norbert Renner
a70cf43838 Fix Custom option not disabled when URL with profile
Getting value of 'profile' ele no longer works (?), replace with proper
check if profile name is custom.
2019-11-29 15:45:31 +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
4efa6247aa Improve profile parameters layout: button always visible, smaller font
- Flexbox layout with scrolling inner content instead of whole tab
- same smaller font size like in layers tab, small input fields
2019-11-13 10:44:34 +01:00
Norbert Renner
b0b8a3d0c0 Remove button state "uploading", no longer supported in Bootstrap v4
https://getbootstrap.com/docs/4.3/migration/#buttons
https://getbootstrap.com/docs/3.3/javascript/#buttons-stateful
2019-11-12 10:04:13 +01:00
Norbert Renner
21a8d8b5de Replace profile options/editor switch buttons with Bootstrap tabs 2019-11-11 19:30:29 +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
cb8aeee6ea
Merge pull request #241 from matzepan/feature/center-track
Feature/Center the map to the track when hovering on it
2019-10-11 12:39:35 +02: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
Phyks (Lucas Verney)
f331773363 Cache custom profiles 2019-10-08 14:33:41 +02:00
Phyks (Lucas Verney)
a77413e1eb Fix an error upon editing profile with a route set 2019-10-08 14:20:51 +02:00
Phyks (Lucas Verney)
43ac9db50c Keep advanced and basic editor in sync 2019-09-27 11:18:27 +02:00
Phyks (Lucas Verney)
83390fc05c Add a message when no configuration options are available 2019-09-27 11:09:13 +02:00
Phyks (Lucas Verney)
ff86c85a8a Full first draft of a working UI 2019-09-27 11:09:13 +02:00
Phyks (Lucas Verney)
39b7dd4a0a Handle i18n of profile parameters 2019-09-27 11:09:13 +02:00
Phyks (Lucas Verney)
aa6d13025c Build on Locus' syntax 2019-09-27 11:09:13 +02:00
Phyks (Lucas Verney)
93de9c0164 Checkbox for boolean values + rework UI a bit 2019-09-27 11:09:10 +02:00
Phyks (Lucas Verney)
fadf2d1a70 First PoC for UI for customizing profile 2019-09-27 11:08:11 +02:00
Unknown
e21bf246ee Center the map to the track when hovering on it 2019-09-27 10:50:26 +02:00
Unknown
4854342c92 Prettified 2019-09-17 12:21: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
Gautier Pelloux-Prayer
d31be926d2 Increase prettier maxwidth to 120 2019-08-10 19:36:36 +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
Norbert Renner
4b470ab0b6
Merge pull request #221 from Phyks/exportWaypoints
Export waypoints from BRouter-web interface
2019-07-26 18:10:32 +02:00
Phyks (Lucas Verney)
5dc7445d62 Rework the include wording in the export modal 2019-07-20 19:43:07 +02:00
Phyks (Lucas Verney)
7666daa10f Add an overlay opacity slider 2019-07-16 12:25:52 +02:00
Phyks (Lucas Verney)
c1169c5c6a Export waypoints from BRouter-web interface. Counterpart of https://github.com/abrensch/brouter/pull/170 2019-07-16 12:12:31 +02:00
Henrik Fehlauer
632e094fb3 Always show travel time and energy
Always show the entries for travel time and energy in the statistics
bar, so the layout does not suddenly change when starting to draw a route.
2019-07-01 20:46:41 +02:00
Norbert Renner
fc598fae2e Warn when server quick fix will remove track name chars (#194, #202) 2019-06-27 09:30:11 +02:00
Norbert Renner
785abe5b99 Remove redundant 'download' link attribute, fixes #201 2019-06-24 18:38:01 +02:00
Norbert Renner
ef41a9e5ff Restore active layers (#205) 2019-06-18 09:14:08 +02:00
Gautier Pelloux-Prayer
f1a20413b0 Upgrade to latest bootstrap 2019-06-03 23:33:31 +02:00