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
Tom Hughes
5b061ef690
Move jquery.simulate to be a yarn managed asset
2020-08-06 19:19:55 +01:00
Peter
5444506976
turn_costs=true only for car
...
I know there was a bit forth and back in #2695 and my last recommendation was to use turn_costs=true. This was not intended for bike and foot.
2020-07-27 13:04:52 +02:00
Tom Hughes
7986576b0e
Fix eslint warnings
2020-07-19 19:54:17 +01:00
Tom Hughes
2898633e72
Drop ch.disable from graphhopper parameters
2020-07-19 19:38:10 +01:00
Tom Hughes
a9b00e16e7
Merge remote-tracking branch 'upstream/pull/2695'
2020-07-16 19:30:55 +01:00
Andy Allan
0c098c3a1d
Convert data feature warning to use bootstrap alert
...
Also rearrange dialog to fit with standard sidebar layouts, so that
the close icon and load buttons are not within the paragraph.
There may be a better way to construct this!
2020-07-15 19:34:19 +02:00
Simon Poole
85cb71702e
Tuen on turn restriction support for graphhopper
...
No way of actually testing if this works, but it is based on https://docs.graphhopper.com/#operation/getRoute/parameters/point and https://www.graphhopper.com/blog/2020/07/08/turn-restriction-support-for-graphhoppers-directions-api/
2020-07-08 16:04:11 +02:00
Tom Hughes
e89742928d
Merge remote-tracking branch 'upstream/pull/2548'
2020-03-18 20:15:06 +00:00
Tom Hughes
75d1893343
Fix eslint warnings
2020-02-29 17:52:55 +00:00
Tom Hughes
0f3856fd1c
Fix highlight of changesets with no bounding box
...
A changeset with no bounding box has no map layer so trying to
set it's style throws an exception which means we don't get to
the code to set the style on the list entry.
Fixes #2541
2020-02-29 17:43:19 +00: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
Andy Allan
a3795cddbb
Move the search results to use list-group-flush
2020-01-16 12:39:13 +01:00
Andy Allan
397d30c4e9
Add query-result classes for errors and nothing_found messages
2020-01-16 11:18:06 +01:00
Andy Allan
712e67ed4a
Refactor the query results to use bootstrap list-group-flush
2020-01-08 16:00:18 +01:00
mmd-osm
549be4adba
Overpass query to use map precision
2019-08-21 10:13:41 +02: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
87127d41e9
Enable some more eslint rules from iD rules
2019-04-06 15:48:51 +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
Simon Poole
26102f581f
Remove old MapQuest Directions routing support
2019-01-29 20:19:36 +00:00
Simon Poole
067290f19f
Remove old OSRM routing support
2019-01-29 20:19:36 +00:00
Simon Poole
8937099429
Add support for FOSSGIS routing server
2019-01-29 20:19:36 +00:00
Tom Hughes
4b0fed0aa4
Replace custom panning with new panInside leaflet method
2019-01-02 11:03:06 +00:00
Tom Hughes
efd50cd529
Merge remote-tracking branch 'upstream/pull/2009'
2018-11-04 14:50:14 +00:00
J Guthrie
d5e6acaace
On hover, change border to a subtle darker orange, increase strokeWidth
2018-11-02 01:23:37 +00:00
Tom Hughes
6b194ed627
Resize change bounding boxes on a zoom change
2018-10-14 12:28:26 +01:00
Tom Hughes
091818da5d
Adjust minimum changeset bbox to 20 pixels
2018-10-11 18:52:00 +01:00
Tom Hughes
bdcc33ae7f
Improve variable naming
2018-10-11 18:51:45 +01:00
J Guthrie
31c4461766
Converted to dot notation - fixes jshint
2018-10-07 00:52:11 +01:00
J Guthrie
e976f316b7
Convert degrees min-width to pixels min-width
2018-10-07 00:33:54 +01:00
Tom Hughes
b13b63b65c
Improve formatting
2018-10-03 22:39:27 +01:00
J Guthrie
cf896fa0a7
Updated min bounds algorithm
2018-10-03 22:07:20 +01:00
J Guthrie
9bf489a0b9
Changeset boundary is enlarged if it was on a single point
2018-10-02 23:56:42 +01:00
J Guthrie
aae0d3b7b5
Changeset border turns blue on hover
2018-10-02 23:41:24 +01:00