Commit graph

605 commits

Author SHA1 Message Date
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
bb097c6c5b Only add layer with key to swicher if key configured (#145) 2019-06-24 12:46:54 +02:00
Norbert Renner
ef41a9e5ff Restore active layers (#205) 2019-06-18 09:14:08 +02:00
Norbert Renner
708b35f642 Set default zoom to 5 instead of 6, because of longer caching (#205) 2019-06-17 13:43:14 +02:00
Norbert Renner
9ea36c6f19 Add worldwide monolingual layer as default when language matches (#205) 2019-06-17 13:43:13 +02:00
Norbert Renner
5d0131e7f8 Move Osmapa.pl to Country, worldwide only up to z13, add bounds 2019-06-17 13:43:12 +02:00
Gautier Pelloux-Prayer
60029df6d9 Upgrade leaflet geocoder to properly parse lat/lng 2019-06-16 19:04:18 +02:00
Gautier Pelloux-Prayer
f1a20413b0 Upgrade to latest bootstrap 2019-06-03 23:33:31 +02:00
Norbert Renner
8edf0f7906
Merge pull request #200 from rkflx/rkflx/polish-statistics-bar
Polish formatting and behaviour of track statistics bar
2019-06-01 12:13:57 +02:00
Henrik Fehlauer
9bc38fea89 Improve number formatting
Use locale-aware number formatting (i.e. add grouping separators).

Use hours and minutes to format travel time.
2019-05-30 23:52:59 +02:00
Henrik Fehlauer
2022069066 Fix unintentional shortcut activations when typing text
Test Plan:
Pressing 'd' key in search box and in custom profile editor no longer
activates route drawing.
2019-05-30 23:52:59 +02:00
Gautier Pelloux-Prayer
ca489cbff0 Handle Edge 17 and earlier versions 2019-05-31 11:16:28 +02:00
Henrik Fehlauer
aeb93e33b6 Polish UI of track statistics bar
Use "x | y" format instead "x (y)"
(The old format was a bit confusing, e.g. the second part of the label
could be mistaken for an "explanation" of the first part, while it
actually is an entirely separate label.)

Repeat unit for every metric.

Use plural for units.

Use "-" everywhere when a metric is not yet available instead of mixing
"-" and "0".

Properly revert to initial "-" when removing route instead of showing
"0".

Show "0" instead of "" when route length cannot be calculated yet.

Slightly change wording ("Energy per 100km").
2019-05-30 23:52:59 +02:00
Norbert Renner
13407465f3 Ensure not undefined for polylines and polygons also (#183)
Which is the case when parsing polylines/polygons URL parameter without
weight.
2019-05-21 18:10:28 +02:00
Gautier Pelloux-Prayer
2a93efe455 Make gulp release happy 2019-05-20 21:49:21 +02:00
Gautier Pelloux-Prayer
64ceccf780 Ensure that nogo weight is not null nor undefined before using it 2019-05-20 19:29:20 +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
Norbert Renner
79ce49fdb8
Merge pull request #177 from bagage/replace-pipe-url
Replace | with ; in URL
2019-05-10 19:09:11 +02:00
Phyks (Lucas Verney)
c58818e50b Fix for a few errors when loading nogos with weight
* Nogo weight was not set when loading nogos with a default weight
value.
* The URL would show up "NaN" values upon reloading the web interface
after having loaded some nogos.

Fix #174.
2019-05-10 08:50:38 +02:00
Gautier Pelloux-Prayer
05b958ab43 Replace | with ; in URL 2019-05-09 14:54:19 +02:00
Norbert Renner
81f2c0863f Show line numbers in profile editor to help locating error message line 2019-05-03 21:23:46 +02:00
Norbert Renner
753de596c6 Refactor layer configs into separate files (#146) 2019-04-27 15:18:36 +02:00
Norbert Renner
0e0619f5da Set layer bounds to avoid unnecessary tile requests (404 errors) (#146)
Add new 'worldTiles' flag where coverage is limited, but basic worldwide
tiles are provided.
2019-04-27 11:18:21 +02:00
Norbert Renner
e049dbf42a Show layer bounds in preview (#146) 2019-04-26 21:31:13 +02:00
Norbert Renner
bea7af0084 Generate layer credits dynamically (#146) 2019-04-19 22:00:25 +02:00
Norbert Renner
35c67d7ff8 Fix JOSM subdomains conversion 2019-04-12 20:19:47 +02:00
Norbert Renner
86f55e00d2 Add map URL for all layers 2019-04-12 20:09:51 +02:00
Norbert Renner
871230bcbe Prepend language and country code to layer tree, ordering, i18n (#146) 2019-04-05 21:33:41 +02:00
Norbert Renner
430ec1cd38 Refactor StravaSegments init into plugin wrapper 2019-04-04 12:03:28 +02:00
Norbert Renner
eaba5a0821 Hide StravaSegments control when layer is not active 2019-04-04 11:50:46 +02:00
Norbert Renner
56b5c04a81 Set base layer z-index to 0, fixes #143 2019-04-03 20:56:56 +02:00
Norbert Renner
282edbbc01 Prevent unnecessary tile loading for default base layer
by only setting it if no layer activated by hash URL
2019-04-03 12:41:39 +02:00
Norbert Renner
d60b1ad15f Use layer id instead of name for hash
- to make it work across languages and on translation changes
- with legacy support for old names
2019-04-02 22:00:32 +02:00
Norbert Renner
f5c952a0eb Refactor hash layers 2019-04-01 21:07:26 +02:00
Norbert Renner
d83ffa3fbc Support optional and custom layers in hash URL
- extend layer control to get current active layers (and more)
- access layer control in hash instead of static initial list
- use ',' layer separator and encode layers individually, so that comma
in layer name gets encoded and is not mistaken as separator as with '-'
2019-03-29 22:20:52 +01:00
Norbert Renner
dbc7fce91d Persist layer selection with local storage (#146) 2019-03-28 15:44:00 +01:00
Norbert Renner
98f80d90ca Update Leaflet to 1.4.0 2019-03-26 21:17:23 +01:00
Norbert Renner
944ccd6cfa Make default layers customizable 2019-03-22 19:50:45 +01:00
Norbert Renner
e02be4ca15 Add expand/collapse tree buttons 2019-03-20 18:41:22 +01:00
Norbert Renner
64957d923b Add toggle button for optional layers and make scrollable and expandable 2019-03-20 13:40:54 +01:00
Norbert Renner
182edb2ee1 Extract all into file per layer, concatenate to single file 2019-03-19 20:27:56 +01:00
Norbert Renner
9c3682294e Improve layer preview handling 2019-03-16 13:09:14 +01:00