Commit graph

710 commits

Author SHA1 Message Date
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
Henrik Fehlauer
fbd3d3d383 Add missing shortcut tooltips to control buttons
Those shortcuts were already working before, but not really
discoverable for users.

To achieve a consistent UI and keep the wording in line with existing
conventions and future shortcuts (i.e. no whole sentences, shortcut in
parenthesis), the mute tooltip is changed again to occupy two lines (to
limit the width of the tooltip), to be less wordy (so it is faster to
read), to use the "mute" term (to help memorizing the M shortcut, at
least in English), and to align with the parenthesis style.
2020-05-27 18:00:00 +00: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
Henrik Fehlauer
36d8a207ab Convert all shortcuts to act on keydown already
Contrary to mouse clicks, when pressing keys on a keyboard the
standard behavior is to perform the associated action immediately,
not only when releasing the key again. This should also improve the
perceived performance slightly.

Note that the 'D' shortcut had formerly been handled by Leaflet, which
we now have to do on our own.

While at it, move the character codes over to the options variable, as
found in other parts of the codebase already.

Also removing the listener from the container does not seem needed
anymore nowadays.
2020-05-26 18:00:00 +00: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
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