Commit graph

670 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
Michael Scherer
eb0e0d6f1e
-p(ort) is needed for docker-compose run command (#309) 2020-06-08 20:12:59 +02:00
Norbert Renner
a85992d927
Merge pull request #308 from schmic/feature/docker-compose-development
add docker-compose tasks for development
2020-06-08 18:33:07 +02:00
Norbert Renner
42899beb26
Merge pull request #307 from schmic/feature/vs-code-workspace-configuration
add VS Code settings, launch and extension recommendations
2020-06-08 18:27:01 +02:00
Michael Scherer
11917dc7ee add docker-compose tasks for development 2020-06-08 15:11:56 +02:00
Michael Scherer
e161c5c40c add VS Code settings, launch and extension recommondations 2020-06-08 14:34:13 +02:00
Norbert Renner
bed388df40
Merge pull request #305 from bagage/docs/contributing
Add CONTRIBUTING.md
2020-06-08 11:38:15 +02:00
Norbert Renner
fcc902b3f9 Update en.json by i18next
i18next removed new dynamic keys under "sidebar.analysis.data" by PR #304, leaving them off for now; the rest is resorting
2020-06-08 10:58:52 +02:00
Norbert Renner
f37489cf26
Merge pull request #304 from mjaschen/feature/track-analysis
Add sidebar tab with route analysis data
2020-06-08 09:08:03 +02:00
Gautier P
db87c170be Add CONTRIBUTING.md 2020-06-07 22:59:51 +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
Norbert Renner
b181649dff
Merge pull request #303 from stesie/mute-opacity
Allow to mute route display
2020-06-07 14:18:54 +02:00
Stefan Siegl
64202a451c
Allow to mute route 2020-06-06 21:47:58 +02:00
Norbert Renner
32d4a26dfd Fix nogo drawing for mobile Chrome, fixes #259 2020-06-05 20:11:36 +02:00
Norbert Renner
f197fb31be Exclude loaded tracks from URL hash 2020-06-03 20:24:17 +02:00
Norbert Renner
9fd9a52a8c Set track color yellow for CyclOSM (#297) 2020-06-02 22:09:22 +02:00
Norbert Renner
a0fe3c8824 Update translations 2020-05-28 10:54:08 +02:00
Norbert Renner
e5e876f717 Make privacy policy URL configurable (#284) 2020-05-28 10:54:08 +02:00
Norbert Renner
01e7fd7144
Merge pull request #284 from erdmark/patch-1
Privacy link relative path
2020-05-28 10:50:42 +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
Norbert Renner
b11c182a29 Fix route drag on mobile for Leaflet 1.6.0 (#285) 2020-05-26 12:27:32 +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
341ba4f7a5 Update translations 2020-05-25 20:22:19 +02:00
Gautier P
8a610d1e54 Use non breakable space for stats unit separator 2020-05-25 19:24:43 +02:00
Norbert Renner
f077124f66
Merge pull request #298 from nrenner/improve-mobile-stats
Improve mobile stats
2020-05-25 18:50:09 +02:00
Gautier P
92ad30be17 Hide zoom controls on mobile 2020-05-24 21:24:14 +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
Norbert Renner
822e49fbf0 Update jQuery to v3.5.1 to fix error expanding elev. profile & navbar 2020-05-22 10:53:46 +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
e5dc5181d8 Update geocoder to official version with fix 2020-05-05 11:01:29 +02:00
Norbert Renner
a02944c0a2
Merge pull request #288 from nrenner/dependabot/npm_and_yarn/jquery-3.5.0
Bump jquery from 3.4.1 to 3.5.0
2020-04-30 18:01:47 +02:00
dependabot[bot]
b7b9941f98
Bump jquery from 3.4.1 to 3.5.0
Bumps [jquery](https://github.com/jquery/jquery) from 3.4.1 to 3.5.0.
- [Release notes](https://github.com/jquery/jquery/releases)
- [Commits](https://github.com/jquery/jquery/compare/3.4.1...3.5.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-04-30 01:31:20 +00:00
Norbert Renner
4bd3898f4f Disable opening browser on gulp serve 2020-04-14 18:56:25 +02:00
Gautier P
23b5439159 Keep fallback values in code in case config.js is not updated with new required fields 2020-04-14 18:44:05 +02:00
Robert Sacks
e91b22ede0 Add config option for initial map position and zoom 2020-04-14 18:42:48 +02:00
erdmark
a901a10917
Privacy link relative path
The privacy link now is relative to the site that it is hosted on

When opening the about page at brouter-web the privacy link left down in the corner is a relative one to https://brouter.de/privacypolicy.html. When running an own instance I think it should link the that page, because the operator could have other terms, for example time for saving logs. So you shoud change that to a relative path to /privacypolicy.html so every operator can have another text.
You could also include a standard privacypolicy.html and put it to /brouter-web/privacypolicy.html so it can be customized if needed.
2020-04-06 16:23:45 +02:00
Norbert Renner
46ed85be2c
Merge pull request #280 from nrenner/update-deps
Update leaflet-triangle-marker dependency to fix leaflet incompatibility
2020-03-18 12:44:04 +01:00
Gautier P
40af115bf1 Update leaflet-triangle-marker dependency to fix leaflet incompatibility 2020-03-12 21:50:11 +01:00
Norbert Renner
a3de2af40e release: 0.11.1 2020-02-20 10:58:26 +01:00
Norbert Renner
c4532c2a85 Update translations 2020-02-20 09:42:36 +01:00
Norbert Renner
f47f3de5b2 Update changelog for 0.11.1 2020-02-20 09:38:25 +01:00
Norbert Renner
32e470707e Update geocoder, fixes result not selectable in Chrome
see https://github.com/perliedman/leaflet-control-geocoder/pull/272
2020-02-20 09:22:57 +01:00
Norbert Renner
6178898815
Merge pull request #277 from nrenner/275-custom-profile-cache
Prevent overwriting profile changes
2020-02-07 20:12:11 +01: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
f1f57ec3ce
Merge pull request #272 from saesh/master
Dockerfile for building and running brouter-web
2020-01-30 12:24:53 +01:00
Sascha Hagedorn
c8d5e79d66 Fix typo 2020-01-30 12:14:00 +01:00
Sascha Hagedorn
a73108f291 Remove unused dependency 2020-01-30 11:48:01 +01:00