Commit graph

1149 commits

Author SHA1 Message Date
Anton Khorev
1fc2a70c17 Rewrite bbox only in place history atom links 2022-09-07 22:13:57 +03:00
Anton Khorev
fb75f447d7 Remove top margins from close buttons 2022-09-02 17:02:46 +03:00
Anton Khorev
5da7215873 Stretch changeset links in history lists 2022-09-01 22:45:09 +03:00
Anton Khorev
351a785949 Remove geolink and close button nesting 2022-09-01 00:42:50 +03:00
Anton Khorev
2da8855cc2 Fix eslint errors 2022-08-28 00:53:53 +03:00
Anton Khorev
f41b5558b7 Position directions close button with flex 2022-08-28 00:32:50 +03:00
Anton Khorev
5a256a6f2b Position 'too many features' close button with flex 2022-08-27 23:50:23 +03:00
Anton Khorev
4ef55ac3aa Position Leaflet sidebar close buttons with flex 2022-08-27 23:15:04 +03:00
Anton Khorev
9acde429bf Inverted onAdd() method of sidebar panes 2022-08-27 22:55:19 +03:00
Anton Khorev
71e7208a0a Create pane button fn 2022-08-27 20:54:37 +03:00
Anton Khorev
8a02bd67d9 Create Leaflet sidebar pane control with header writer fn 2022-08-27 20:33:44 +03:00
Kiel Hurley
778f6a8e36
Correct name in graphhopper.js
When using directions, the footer says "Directions courtesy of Graphhopper"
2022-08-17 13:19:25 +12:00
Andy Allan
e443ec7587
Merge pull request #3634 from AntonKhorev/map-key-tooltip
Fix tooltips
2022-08-03 15:38:58 +01:00
Andy Allan
68776e378c Fix remaining tooltips, and add tests
These were broken during the upgrade to bootstrap 5

Fixes #3632
2022-08-03 15:20:50 +01:00
Andy Allan
6b69655812
Merge pull request #3631 from AntonKhorev/bootstrap-close
Use Bootstrap close button
2022-08-03 11:47:08 +01:00
Tom Hughes
e9f62a8c30 Rename piwik to matomo and merge configuration into settings 2022-08-01 22:42:04 +01:00
Anton Khorev
31a39d3479 Fix zoom level related tooltips except for layer checkboxes 2022-07-29 18:07:32 +03:00
Anton Khorev
cbb8772685 Fix map key tooltip 2022-07-28 22:15:08 +03:00
Anton Khorev
89095c8981 Fix eslint errors 2022-07-27 21:36:54 +03:00
Anton Khorev
eb0f6d5952 Fixed welcome banner close button 2022-07-27 21:10:49 +03:00
Anton Khorev
4000a4004b Changed feature close buttons to Bootstrap 2022-07-27 21:02:16 +03:00
Anton Khorev
66e526c2d5 Changed directions close button to Bootstrap 2022-07-27 20:54:47 +03:00
Anton Khorev
0322ed4295 Changed close buttons of banner and other leaflet sidebars to Bootstrap 2022-07-27 20:22:20 +03:00
Anton Khorev
5ed2bfc950 Changed sidebar close button to Bootstrap 2022-07-27 19:35:29 +03:00
Andy Allan
934d81aa55 Bootstrap 5: Replace all form-group classes with mb-3 2022-07-20 14:42:57 +01:00
Tom Hughes
ed4549afab Fix eslint warnings 2022-06-26 19:56:27 +01:00
Tom Hughes
0b02fcf421 Merge remote-tracking branch 'upstream/pull/3577' 2022-06-19 12:38:08 +01:00
faebebin
05d2eba921 Fix map edit controls min-zoom behaviour
The map dropdown and tooltip of the map edit controls should
behave similar when zooming in and out.
This is achieved by disabling the button-group and the buttons.
2022-06-19 11:10:29 +02:00
Martin Raifer
66656e1d1d
only parse hashParams if there is a hash
Presumably this was an oversight in the original implementation, as `OSM.params` falls back to the page's `query` string if the function's parameter (here: the page's `hash`) is an empty string.

This fixes some inconsistent behaviour of the website. In the example below, the first URL sets the `background` to `none` while in the second example it doesn't.

* https://www.openstreetmap.org/edit.html?background=none
* https://www.openstreetmap.org/edit.html?background=none#map=
2022-06-14 20:41:10 +02:00
Martin Raifer
c55d346d5f
Update to iD v2.21.0
major changes in this release:
* dropped support for Internet Explorer 11
* switched authentication to OAuth 2

for further changes please refer to https://github.com/openstreetmap/iD/blob/release/CHANGELOG.md#2210
2022-06-03 15:32:27 +02:00
Tom Hughes
877867537b Fix eslint warning 2022-04-18 14:23:02 +01:00
Tom Hughes
2f6eebcd97 Update to leaflet 1.8.0 2022-04-18 14:10:06 +01:00
Tom Hughes
fe79965869 Merge remote-tracking branch 'upstream/pull/3462' 2022-02-22 19:06:43 +00:00
Tom Hughes
398a39dd0a Make sure the object layer is kept in front of the data layer 2022-02-22 18:55:34 +00:00
Tom Hughes
97bb135957 Don't highlight selected items in the data layer
Routing to the feature page is going to cause them to be overlaid
in orange anyway so there's no need for the blue highlight.
2022-02-22 18:54:40 +00:00
Tom Hughes
29d2f48214 Deep copy the original style when highlighting an object
Fixes #3465
2022-02-21 22:48:22 +00:00
Tobias Speicher
be878df097
Replace deprecated String.prototype.substr()
String.prototype.substr() is deprecated (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr) so we replace it with slice() which works similarily but isn't deprecated.
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2022-02-20 22:11:11 +01:00
Tom Hughes
9bf0dee51a Update path to js-cookie 2021-07-27 08:18:53 +01:00
Milos Brzakovic
9fe45bdfe3 iD api url update 2021-07-26 19:11:33 +02:00
Tom Hughes
b4a1e41968 Switch web site to use OAuth 2 2021-06-27 19:00:36 +01: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
Andy Allan
501e256419 Refactor the share panel to use bootstrap forms 2021-02-17 17:17:19 +00:00
Andy Allan
5c086dad6e Use bootstrap form-check for overlay selection 2021-02-17 17:05:49 +00:00
Tom Hughes
80f576a29b Fix avatar mode update on file change 2021-02-16 17:12:34 +00:00
Tom Hughes
d15041f847 Use POST to submit OpenID login form
Fixes #3084
2021-02-06 15:04:33 +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