Commit graph

751 commits

Author SHA1 Message Date
Henrik Fehlauer
8e65d6a3dd Show analysis table highlight above quality coding layer (#304)
When hovering over rows in the analysis tab, highlighted sections for
the route could only be seen on the regular route, but not when any of
the color-coded route visualisations were selected.

Patch based on a similar fix for data table in d33c795200.
2020-05-25 18:00:00 +00: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
Henrik Fehlauer
8ca92e260d Improve analysis tab CSS
There are some ways the look of the analysis tab can be polished:
- Properly right-align the length header
  (it had extra margins required for the sorting arrows in the data tab)
- Use the same font size for table header and body (like in the data tab)
- Improve padding of the totals row (to align with the rows above)
- Add missing style for headings, so they look more balanced
  (the CSS was already there, but the wrong class was used in the HTML)
- Fine-tune vertical spacing (to help visual grouping)
- Remove unused and redundant CSS
- Do not show yellow hover effect over table header
2020-05-24 18:00:00 +00: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
Henrik Fehlauer
9d648fc1d7 Make hotline contrast more pleasant
Colorful routes can conflict visually with colourful maps, therefore
having an outline to make the route stand out more makes sense.

However, using black results in very high contrast levels, which can
become distracting in itself. By using a dark gray, this should look
much more balanced, while still fulfilling the original purpose.
2020-05-23 18:00:00 +00:00
Henrik Fehlauer
900f925276 Improve incline coding visuals and use different colors for going uphill
Currently it is a bit difficult to guess the slope of the route for
planning purposes, since even for routes in very hilly terrain the
colors hardly change. Only extremely steep hills are indicated,
and there is no visual difference between going uphill or downhill.

By cutting off earlier, more of the route will show meaningful
differences in color. Note that BRouter's gradients are already
averaged compared to the maximum gradients shown on road signs, so 15%
should be a good compromise (anything steeper is difficult to ride on
for longer periods anyway, and rightly deserves to be colored with an
alarming red).

By using different colors for the min and max parameters, uphill and
downhill sections should now be easy to distinguish.

By introducing two more color stops, the gradient becomes much smoother,
with flat sections featuring a distinctive green, where they were drawn
in a muddy dark green before.

Note that this approach had been implemented like this in QLandkarte GT
for several years now, with great success.
2020-05-22 18:00:00 +00: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
Sascha Hagedorn
ea895da29d Add description for running as Docker container 2020-01-30 11:34:55 +01:00
Sascha Hagedorn
3d8e712719 Build Docker image from sources 2020-01-24 17:01:33 +01:00
Sascha Hagedorn
8e38cad31d Add Dockerfile 2020-01-24 17:01:33 +01:00
Norbert Renner
5c1713d9bd Remove chmod install step, set execution flag, retained in zip 2020-01-21 19:56:43 +01:00
Norbert Renner
de74609a55 release: 0.11.0 2020-01-21 10:23:21 +01:00
Norbert Renner
3168bda5c2 Update translations 2020-01-21 09:52:21 +01:00
Norbert Renner
e73938f4e3 Update readme installation instructions for standalone zip 2020-01-17 12:25:01 +01:00
Norbert Renner
06d44480da Update changelog for 0.11.0 2020-01-15 16:40:50 +01:00
Norbert Renner
5ff129e634 Update leaflet-routing to fix regression when deleting first marker 2020-01-09 12:01:18 +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
b0aa8ec20e Update translations 2020-01-04 13:00:48 +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
568cd887d8
Merge pull request #270 from nrenner/standalone-zip
Standalone release zip
2019-12-31 18:42:54 +01:00
Norbert Renner
12c58b70fa Add standalone run.sh and configure localhost 2019-12-30 20:52:55 +01:00
Norbert Renner
5cc99949fd Merge config profiles as we now include all in standalone zip 2019-12-20 19:28:19 +01:00
Norbert Renner
7d0a4db059 Add npm script to build brouter and call standalone task 2019-12-20 19:27:22 +01:00
Norbert Renner
057fd85a32 Add gulp task to generate a standalone release zip from brouter repo 2019-12-19 21:27:31 +01:00
Norbert Renner
502735cb8e
Replace large awesome-markers with smaller vector-markers (#268) 2019-12-18 21:28:58 +01:00
Norbert Renner
c933a7a431 Update leaflet-routing for stop marker fix (#nrenner/leaflet-routing#3) 2019-12-18 12:24:00 +01:00