Anton Khorev
351a785949
Remove geolink and close button nesting
2022-09-01 00:42:50 +03:00
Anton Khorev
f41b5558b7
Position directions close button with flex
2022-08-28 00:32:50 +03:00
Anton Khorev
66e526c2d5
Changed directions close button to Bootstrap
2022-07-27 20:54:47 +03:00
Andy Allan
c8f0a81eb7
Rework sidebar to use padding on the sidebar_content div
...
This saves every header, list, paragraph etc having to sort out their own padding. The couple of instances where we want edge-to-edge can be acheived using the negative margin spacing utilities.
The padding is based on $spacer so that it can be adjusted automatically via bootstrap configuration.
This also means that we can remove many (mis-)uses of the browse-section class, which is only supposed to be for cases where there are multiple browse-sections in sequence (e.g. multiple nodes in the node history browse pages).
2021-06-16 15:45:58 +01:00
Andy Allan
c2587b5b57
Rework the routing credit to use a bootstrap class
...
The padding is unnecessary given it's in a paragraph anyway.
2021-06-16 13:28:33 +01:00
Tom Hughes
0a15112423
Mark javascript issued cookies with SameSite=Lax
2021-05-17 19:06:43 +01:00
Tom Hughes
32cc04fa5c
Switch to using js-cookie to manage cookies from javascript
2021-05-17 18:57:48 +01:00
Tom Hughes
f91dd6afc2
Tighten up cookie security
...
Mark all cookies as Secure, and the cookies which are not
modified client side as HttpOnly.
2021-02-19 18:18:13 +00:00
Tucker Chapman
d257e67842
Remove conditional for polyline layer
...
When a user searches for a route and one is not found the polyline
layer is removed - if they then change the mode of transportation the
event listener will not reroute if there is no polyline layer.
This commit removes the conditional that prevents the routing code from
re-running after the polyline has been removed.
Fixes #3050
Closes #3055
2021-01-28 10:31:33 +00:00
Tom Hughes
79447e7549
Replace querystring parser with qs yarn module
2020-08-06 20:51:55 +01:00
Holger Jeromin
c70e919b47
rename internal variable
2020-02-26 20:27:52 +01:00
Holger Jeromin
c094cc1933
further linting stuff
2020-01-26 11:26:58 +01:00
Holger Jeromin
f9ab67577f
fixing linting
2020-01-26 11:22:50 +01:00
Holger Jeromin
a32f4c231e
Prevent exceptions while reversing directions
2020-01-26 11:01:45 +01:00
marc tobias
61faea262a
Pass viewbox to Nominatim when geocoding routing endpoints
...
Fixes #2327
Closes #2328
2019-07-25 19:24:36 +01:00
Tom Hughes
6dd451c7ee
Stop creating a shared global querystring variable
2019-07-15 20:28:54 +01:00
Tom Hughes
a47c0a4411
Update querystring references
2019-07-15 10:03:09 +01:00
Tom Hughes
492a640530
Enable a few more eslint checks
2019-07-14 12:08:02 +01:00
Tom Hughes
c4c0e8105a
Enforce consistent indentation in javascript code
2019-07-14 10:52:18 +01:00
Tom Hughes
5bd59e1936
Enable a number of eslint style rules
2019-04-07 17:02:39 +01:00
Tom Hughes
eb7678145a
Use double quotes consistently in javascript code
2019-04-06 15:59:34 +01:00
Tom Hughes
1f13321a60
Fix issues found by eslint
2019-04-01 22:03:39 +01:00
Tom Hughes
48e886784e
Change default directions engine to fossgis_osrm_car
...
Also handle old cookies and URLs that ask for engines that
are no longer available.
2019-01-29 20:19:36 +00:00
J Guthrie
606c0adf29
Remove error class when right-click-selecting destination
2018-04-15 18:05:25 +01:00
Tom Hughes
be35dda9c3
Merge remote-tracking branch 'upstream/pull/1804'
2018-04-02 15:41:35 +01:00
Tom Hughes
7e6e1dfbaf
Tweak highlighting of geolocation errors
2018-04-02 15:24:03 +01:00
J Guthrie
65ceb77eab
Added autoPan for Directions markers
2018-03-31 22:18:25 +01:00
J Guthrie
efd17cfbe9
Moved inline styling to stylesheet
2018-03-29 22:48:39 +01:00
J Guthrie
becccea034
Remove/replace redundant no_place locale translation
2018-03-29 22:27:33 +01:00
J Guthrie
1bb52e3cb6
Unlocateable place now highlighted in red and specified in error message
...
The textbox containing the unlocateable place gets highlighted in red
Also added a new locale value to specify an error for a specific place
2018-03-29 21:02:42 +01:00
Jamie Guthrie
58a0184fc0
Fix route path 'hovering' when marker positions are changed
...
Closes #1755
2018-02-15 17:58:59 +00:00
Tom Hughes
aafb1db2be
Avoid relying on global state to detect when we are dragging
...
We can't guarantee what order getRoute calls will finish in so
relying on global state is dangerous - capture it in the closure
instead so that each route knows what it is doing.
2018-02-14 17:58:01 +00:00
Tom Hughes
20e4909230
Stop map zooming out after dropping marker
...
Closes #1751
2018-02-14 17:53:33 +00:00
Jamie Guthrie
93d94bb1f9
Correctly swap from and to values when reversing directions
...
Closes #1752
Fixes #1748
2018-02-14 17:22:39 +00:00
Jamie Guthrie
97f75e82c0
Add padding to directions popups
...
Clicking on a direction step now pans to the popup, but includes some
padding so that the popup is not hidden in the corner of the screen.
Closes #1745
2018-02-13 17:25:56 +00:00
Tom Hughes
609cedc499
Allow lat/lon from the URL to take precedence when routing
2018-02-03 16:39:39 +00:00
Tom Hughes
aea57cdfc3
Go through the router when reversing directions
2018-02-03 16:21:35 +00:00
Tom Hughes
9d2f920feb
Merge remote-tracking branch 'upstream/pull/1693'
2018-02-03 16:12:51 +00:00
Tom Hughes
af1397436f
Use https for nominatim
2018-01-08 10:50:44 +00:00
J Guthrie
7a933cf928
Added 'Reverse Directions' link
...
Added a text link that reverses the directions of the planned route
2017-12-17 01:09:09 +00:00
Dan Stowell
5f35d37fee
Remember user's choice of directions engine
2017-04-11 19:42:37 +01:00
Nicolas Cornu
5401055ce1
Add Ascend/Descend when routing with GraphHopper
2017-02-16 19:52:41 +01:00
Mormegil
caac9a9403
Ensure IE/Edge compatibility for routing drag&drop
...
Use the DataTransfer interface properly, using the `text` format, as
IE/Edge does not support much more. We can JSON-serialize anything
there, even though right now, only a single string would be enough.
Also, IE does not support .setDragImage, so check for support prior
to calling.
Fixes #1343
2016-10-27 12:34:07 +02:00
Tom Hughes
3c771a7844
Improve error handling for routing engines
2015-09-30 21:58:16 +01:00
Simon Legner
6d511fbd34
Directions, read "to" location in URL - fixes #998
2015-08-26 21:38:39 +02:00
Tom Hughes
05caad1a5d
Fix some validation issues
2015-03-16 20:49:14 +00:00
Tom Hughes
6d9d688080
Simplify close icon for routing panel and fix validation error
2015-03-16 20:26:59 +00:00
Tom Hughes
9ec625e352
Fix typo
...
Fixed #916
2015-02-27 17:02:53 +00:00
Tom Hughes
4254a1f291
Cancel any outstanding route when starting a new one
...
Fixes #913
2015-02-26 18:39:31 +00:00
Tom Hughes
4b2c64fbed
Set an explicit image when dragging from the routing panel
...
This may help with #912 but at the very least it gives us a full size
image consistent with dragging marker that is already on the map.
2015-02-26 14:06:25 +00:00