Commit graph

80 commits

Author SHA1 Message Date
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
Gautier Pelloux-Prayer
ac57250b7e Remove "/brouter?" from URL 2017-04-24 16:11:53 +02:00
Gautier Pelloux-Prayer
9b52a938ab Fix load when layer contains spaces 2017-04-24 11:53:57 +02:00
Gautier Pelloux-Prayer
3b7494b9d9 Fix route drawing on page reload 2017-04-24 11:42:42 +02:00
Gautier Pelloux-Prayer
e82f360d9c Replace permalink/Share URL feature with automatic URL rewriting on change. 2017-04-04 10:27:51 +02:00
Norbert Renner
c17726513f Leaflet 1.0: "clickable" option renamed to "interactive" 2017-03-16 09:25:28 +01:00
Gautier Pelloux-Prayer
d7e476db82 Updating UI to also fit on mobile devices. Fix #34 2017-01-23 10:47:28 +01:00
Norbert Renner
0e471bade0 Replace custom Bing.js with current
Now provides file:// support and init on layer add instead of page load
2016-09-21 19:53:38 +02:00
Norbert Renner
42d04e52c2 Show position in elevation diagram when hovering path on map, closes #29 2016-06-21 10:15:39 +02:00
Norbert Renner
6eea7b5597 switch search to Nominatim for now, MapQuest discontinues key-less API 2015-08-27 12:38:07 +02:00
Norbert Renner
a078bc24f0 register key listener on document instead of map container (needs focus) 2015-05-30 15:36:38 +02:00
Norbert Renner
7098cd2cf3 fix adding new waypoint after deleting the last 2015-05-27 20:06:57 +02:00