Anton Khorev
18f03fe59b
Write directions sidebar header using .erb template
2025-03-06 13:15:06 +03:00
Anton Khorev
1c66d7f50f
Move directions listeners init code to its own function
2025-03-06 12:06:22 +03:00
Anton Khorev
0ba8ac49f6
Move directions params init code to its own function
2025-03-06 12:02:15 +03:00
Anton Khorev
96a12196bf
Separate setting/clearing listeners/values on directions endpoints
2025-03-06 11:56:15 +03:00
Tom Hughes
cf3c627c1a
Merge remote-tracking branch 'upstream/pull/5739'
2025-03-01 12:27:36 +00:00
Anton Khorev
4e9483e5eb
Use location instead of window.location and document.location
2025-03-01 12:01:31 +03:00
Anton Khorev
614542ad7f
Register startinglocation listener as a named function
...
The listener is not going to be run once if it's constructed inside the locateactivate listener. It's going to be run however many times locateactivate happens.
2025-03-01 11:29:19 +03:00
Marwin Hochfelsner
87363858cb
Clean up new direction form
2025-02-27 21:41:46 +01:00
Tom Hughes
648b8ba1f8
Merge remote-tracking branch 'upstream/pull/5727'
2025-02-27 20:31:19 +00:00
Marwin Hochfelsner
370fe0855e
Set directions departure to location
2025-02-27 20:47:00 +01:00
Marwin Hochfelsner
459d3b314a
Split directions engine select into modes and providers
2025-02-27 20:30:22 +01:00
Marwin Hochfelsner
8277f29c90
Split engine translations
2025-02-21 12:00:43 +01:00
Marwin Hochfelsner
d5b3a70ac1
Split engine id into mode and provider
2025-02-21 11:59:10 +01:00
Tom Hughes
51a2d85053
Merge remote-tracking branch 'upstream/pull/5694'
2025-02-20 22:08:02 +00:00
Marwin Hochfelsner
e6b0e1ae7e
Associate search input with route destination instead of departure
2025-02-19 17:06:36 +01:00
Marwin Hochfelsner
3939f24460
Enable exporting direction paths
2025-02-17 11:39:36 +01:00
Tom Hughes
c47cb299a8
Replace uses of var with let or const as appropriate
2025-02-16 11:14:13 +00:00
Marwin Hochfelsner
e1055764d8
Get directions using fetch
...
Co-authored-by: Holger Jeromin <h.jeromin@beckhoff.com>
2025-02-12 05:13:12 +01:00
Marwin Hochfelsner
a3c45f6ed6
Reduce condition complexity
2025-02-09 06:51:56 +01:00
Marwin Hochfelsner
628f6149d1
Close directions popup with sidebar
2025-02-04 07:16:05 +01:00
Tom Hughes
46cd3a1114
Replace qs with URLSearchParams
2025-02-02 19:27:20 +00:00
Tom Hughes
8f7f02b025
Merge remote-tracking branch 'upstream/pull/5064'
2025-02-02 12:44:27 +00:00
Marwin Hochfelsner
4b6b49801c
Add coordinate precision function
2025-02-02 01:37:07 +01:00
Anton Khorev
a1051b418e
Swap cached reverse geocodes when reversing directions
...
Do this instead of putting reversed input values into url.
2024-09-08 10:38:53 +03:00
Anton Khorev
bb9a8958fb
Remove latlng parameter from endpoint.setValue
2024-09-08 10:31:10 +03:00
Anton Khorev
b4925d7b0d
Limit coordinate precision in drag listener
2024-08-20 14:55:29 +03:00
Tom Hughes
99a7d21a9b
Merge remote-tracking branch 'upstream/pull/5095'
2024-08-19 19:05:44 +01:00
Anton Khorev
93a9f31bf0
Show/hide "Where is this?" when setting search value from directions
2024-08-19 20:05:48 +03:00
Anton Khorev
c9f495cb18
Remove endpoint markers in disable method
2024-08-19 19:39:53 +03:00
Anton Khorev
dad6bca753
Install endpoint listeners using enable/disable methods
2024-08-19 19:39:53 +03:00
Tom Hughes
41b81bd393
Merge remote-tracking branch 'upstream/pull/5083'
2024-08-18 12:16:22 +01:00
Anton Khorev
80c43f51c2
Copy "From" endpoint value to search input when closing directions
2024-08-16 18:48:05 +03:00
Anton Khorev
e624871eb4
Remove endpoint.hasGeocode state and related getRoute code
...
hasGeocode didn't actually indicated if an endpoint has a value acquired from a geocoder. It was set to true when at least one call to a geocoder finished successfully, including getting an empty result. getRoute doesn't need to know what calls were made, it only needs coordinates. It also doesn't get to decide when to fetch coordinates, this is done in drag/change callbacks.
2024-08-16 08:53:34 +03:00
Anton Khorev
ec6789920c
Rename geocodeCallback to changeCallback, call it from latlon setValue
...
endpoint.setValue always calls changeCallback on its successful completion, with geocoding or without. This allows to decide when to call getRoute entirely from callbacks and event listeners.
2024-08-15 12:00:31 +03:00
Anton Khorev
e0df084e57
Don't call endpoint.setLatLng() from outside of endpoint module
2024-08-14 05:11:56 +03:00
Anton Khorev
415f497d89
Move endpoints code to its own module
2024-08-10 06:19:32 +03:00
Anton Khorev
567a9e5b23
Rename route request variable
...
It's not boolean, the comment was outdated.
2024-08-10 06:01:35 +03:00
Anton Khorev
d065f88b1a
Remove references to global variables from endpoint drag listener
...
This causes visible input value updates even when the route is not recalculated. The upside is that it lets endpoints not know about the route and its update state.
2024-08-10 05:53:59 +03:00
Anton Khorev
b5070d97a9
Introduce geocode event callback for route endpoints
...
Removes remaining getRoute() call from endpoint objects.
2024-06-15 22:26:23 +03:00
Anton Khorev
d3ab0c9a8a
Introduce drag event callback for route endpoints
...
Avoids calling getRoute() from within endpoint objects.
2024-06-15 21:51:48 +03:00
Tom Hughes
84aa7f455a
Merge remote-tracking branch 'upstream/pull/4897'
2024-06-14 18:02:50 +01:00
Anton Khorev
6c3c4f2751
Use .is-invalid to highlight routing inputs with failed geocode lookups
2024-06-14 19:42:45 +03:00
Anton Khorev
5944feb008
Remove global "awaiting geocode" routing state
2024-06-14 19:14:49 +03:00
Anton Khorev
6ae4e53f45
Use flex in routing form to fix marker column width
2024-06-03 12:21:11 +03:00
Tom Hughes
161fc8ac47
Replace deprecated text-muted class with text-body-secondary
2024-05-22 11:58:32 +01:00
Anton Khorev
48fc453dd0
Use Bootstrap hoverable rows in directions tables
2024-04-15 18:52:19 +03:00
Anton Khorev
62ba143c3c
Remove some search/directions custom css
2023-10-20 16:58:59 +03:00
Andy Allan
5473be178a
Refactor the directions table to use bootstrap table styling
...
This allows us to remove some custom CSS
2023-09-13 11:30:50 +01:00
Tom Hughes
4e0c5f5fcb
Make distances in directions translatable
...
Fixes #3888
2023-01-10 20:58:10 +00:00
Anton Khorev
6c415ef142
Add aria-label to close buttons
2022-10-31 23:54:58 +03:00