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
502735cb8e
Replace large awesome-markers with smaller vector-markers ( #268 )
2019-12-18 21:28:58 +01:00
Norbert Renner
9d59d51549
Improve distance markers a bit ( #243 )
...
- make icons a bit smaller
- also results in better vertical centering
- round icon too small for 3 digits, multiply width by digits
- increase opacity a bit for better readability
2019-12-13 12:44:24 +01:00
Gautier Pelloux-Prayer
a23634e1c4
Use custom markers for start and end
2019-10-19 10:15:36 +02:00
matzepan
4fdd375b5c
removed let
2019-10-02 23:36:35 +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
Gautier Pelloux-Prayer
d31be926d2
Increase prettier maxwidth to 120
2019-08-10 19:36:36 +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
69e53233ba
Replace Leaflet.draw with Leaflet.Editable, closes #100
2018-01-12 15:38:47 +01: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
d7e476db82
Updating UI to also fit on mobile devices. Fix #34
2017-01-23 10:47:28 +01: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
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
Norbert Renner
92730009e0
fix showing tailer at start or after deleting last waypoint
2015-05-27 20:01:03 +02:00
Norbert Renner
d30684b6c8
add opacity slider (bootstrap-slider) for route track and markers
2015-05-21 20:16:04 +02:00
Norbert Renner
7c2df94fe8
add track casing + change color to magenta
2015-04-25 16:19:30 +02:00
Norbert Renner
e822c9a21c
use Routing.draw instead of Routing.Draw methods
2015-04-18 15:12:18 +02:00
Norbert Renner
75b771e2a9
add button to clear route
2015-04-04 14:58:02 +02:00
Norbert Renner
1bd2eb0082
hide trailer over controls and outside map
2015-04-04 13:11:24 +02:00
Norbert Renner
5a277b0a34
add Bootstrap:
...
- remove normalize.css, included
- adjust to Bootstrap's "box-sizing: border-box"
- conflict with Leaflet "label" class
2015-03-06 17:21:53 +01:00
Norbert Renner
996a802b23
don't show draw trailer after waypoint hover when line edit is still active
2014-08-28 22:07:45 +02:00
Norbert Renner
d007c45734
improve and customize line-mouse-marker:
...
- negative zIndexOffset to have line marker under waypoint markers
- turn line marker off when over waypoint marker
- consider border width in iconAnchor (fix offset from line)
- same border color and width as line (instead of black)
2014-08-26 17:36:49 +02:00
Norbert Renner
8344404483
prevent cursor marker from consuming mouse events
2014-08-23 20:07:51 +02:00
Norbert Renner
c4d87b122c
add error handling for permalinks
2014-08-23 13:12:55 +02:00
Norbert Renner
2c5906ad7b
bring back 'esc' to disable drawing (in addition to 'q')
2014-08-22 10:57:30 +02:00
Norbert Renner
726cf4bba6
switch to GeoJSON response format instead of GPX:
...
- use BRouter track stats
- remove leaflet-gpx plugin
2014-08-22 10:10:07 +02:00
Norbert Renner
f0d0182256
animated dashed line as loading indicator, instead of a spinner, resolves #3
2014-08-15 11:31:05 +02:00
Norbert Renner
9279913d36
indicate recalculation request by changing segment color (mark old);
...
in addition to or instead of loading spinner (#3 )?
2014-05-29 20:44:12 +02:00
Norbert Renner
136a182539
routing permalink
2014-05-15 20:37:17 +02:00
Norbert Renner
53587c865b
crosshair cursor instead of marker
2014-05-14 13:14:35 +02:00
Norbert Renner
4cc16bccd0
initial commit
2014-01-27 18:34:48 +01:00