Commit graph

241 commits

Author SHA1 Message Date
Unknown
023e30073d Incline is now the first option, cost the last 2019-10-10 19:36:21 +02:00
Unknown
9eeca7e2d5 Added hotline based route overlay
Added a overlay which reflects the quality of the route based on either:
* cost
* altitude
* incline
2019-10-10 19:35:51 +02:00
matzepan
4fdd375b5c removed let 2019-10-02 23:36:35 +02:00
Unknown
fde748f7cf Let seems not to be supported 2019-10-02 23:27:45 +02:00
Unknown
ff1499c62b If a track contains waypoints, they are set to the router 2019-10-02 16:16:29 +02:00
Unknown
1828a642c3 Remove markers when route is deleted 2019-10-02 15:28:37 +02:00
Unknown
173752c691 Added distance markers to the routing path 2019-10-02 14:23:27 +02:00
Unknown
ee54d45790 Changed loaded track to noninteractive 2019-10-01 20:41:28 +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
Gautier Pelloux-Prayer
d00fe15ff1 Refactor error handling 2019-08-07 18:20:24 +02:00
Gautier Pelloux-Prayer
ba12f0d609 Extract nogo areas upload in BR.NogoAreas 2019-08-07 11:08:19 +02:00
Norbert Renner
ef41a9e5ff Restore active layers (#205) 2019-06-18 09:14:08 +02:00
Gautier Pelloux-Prayer
60029df6d9 Upgrade leaflet geocoder to properly parse lat/lng 2019-06-16 19:04:18 +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
970a34981f Add prettier and reformat code 2019-05-17 20:55:39 +02:00
Gautier Pelloux-Prayer
d009aa5bc6 Add reverse route button 2019-05-11 17:52:16 +02:00
Norbert Renner
430ec1cd38 Refactor StravaSegments init into plugin wrapper 2019-04-04 12:03:28 +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
Phyks (Lucas Verney)
18327ebbf0 Fix polygon edition 2019-02-21 07:55:55 +01:00
Phyks (Lucas Verney)
ab06b8a8d1 Fix an error when creating a nogo circle 2019-02-20 10:06:31 +01:00
Phyks (Lucas Verney)
6e60751db0 Render polygons from URL hash and pass it to BRouter server 2019-02-18 21:00:36 +01:00
Norbert Renner
54dfa93624 Focus map after sidebar close (#114)
to be consistent with Leaflet Controls and EasyButton behaviour; 
removes focus outline in Firefox from tab that would else remain there
2018-07-25 22:03:23 +02:00
Norbert Renner
59827a524f Restore (short) attribution on the map, closes #110 2018-07-03 20:41:26 +02:00
Norbert Renner
4740048960 Fix reopened tooltip getting closed by timer
Cases:
- enabled tooltip gets closed after disable + re-enable
- disabled tooltip gets closed after create + re-hover

Superfluous clearTimeout calls in the regular case after timeout have no
effect.
2018-06-28 16:43:30 +02:00
Norbert Renner
ce32c0da71 Add nogo button to routing bar 2018-06-27 09:17:45 +02:00
Norbert Renner
1c9cef910b Sidebar closed by default, avoid full-screen on mobile (#112) 2018-04-09 18:50:53 +02:00
Norbert Renner
093db8bfe2 Add sidebar expand button, refresh CodeMirror on expand (scrollbar) 2018-03-19 19:27:10 +01:00
Norbert Renner
ce279fd464 Adapt transit demo support to new sidebar 2018-03-15 14:59:53 +01:00
Norbert Renner
92aafc61d1 Fix elevation chart width, map not full width with sidebar open anymore 2018-03-08 11:47:44 +01:00
Norbert Renner
3acd1171b1 Switch to customized leaflet-sidebar-v2 (WIP)
Based on leaflet-sidebar-v2 fork of sidebar-v2:
- Simpler because Leaflet-only
- autopan option
- seems more active with two contributers

Customization for brouter-web in own fork (WIP):
- hidden bar when collapsed
- flat design to match header/footer
- flexbox layout beside map instead of media breakpoints
2018-03-08 11:47:44 +01:00
Norbert Renner
443ca9c03e Replace sidebar with sidebar-v2, restore old flexbox tabs (#90) (WIP) 2018-03-08 11:47:44 +01:00
Norbert Renner
20ddb88562 Replace L.Mixin.Events with L.Evented (#103) 2018-02-05 17:40:53 +01:00
Norbert Renner
69e53233ba Replace Leaflet.draw with Leaflet.Editable, closes #100 2018-01-12 15:38:47 +01:00
Norbert Renner
761a053b72 Leaflet 1.0: revert elevation diagram touch events on desktop browsers
Workaround for MrMufflon/Leaflet.Elevation#67
2017-08-07 11:32:45 +02:00
Norbert Renner
6c316c8688 Leaflet 1.0: Fix elevation marker on track hover
Breaking change by "only propagate events if given true to fire, #2311",
6d1142a
2017-07-25 18:10:17 +02:00
Gautier Pelloux-Prayer
9109322905 Use https scheme whenever possible, to avoid mixed content issues 2017-05-09 22:14:39 +02:00
Gautier Pelloux-Prayer
5bd679a282 Fix fullhash feature 2017-05-02 16:24:20 +02:00
Gautier Pelloux-Prayer
203d527a32 Add raw fullhash 2017-05-01 16:15:36 +02:00
Gautier Pelloux-Prayer
915189b171 Reduce changes with upstream 2017-04-28 10:35:06 +02:00
Gautier Pelloux-Prayer
3d3dd376a4 Use & instead of ? in URL 2017-04-28 10:24:14 +02:00
Gautier Pelloux-Prayer
4a431ac4bf Fix URL 2017-04-24 17:00:19 +02:00
Gautier Pelloux-Prayer
ab85ec31e1 Support old style URLs 2017-04-24 16:47:38 +02:00
Gautier Pelloux-Prayer
2188183d3f Fix multi layers support 2017-04-24 16:23:36 +02:00
Gautier Pelloux-Prayer
cc5da47cad Revert "Extends Leaflet-fullhash properly"
This reverts commit 3a06009cba7e74600bb7a1ed0c511cfa8e1c7ffc.
2017-04-24 16:11:53 +02:00
Gautier Pelloux-Prayer
d4c5ca67b9 Extends Leaflet-fullhash properly 2017-04-24 16:11:53 +02:00