Commit graph

31 commits

Author SHA1 Message Date
Marwin Hochfelsner
154af08786
Set zoom in id iframe data 2025-02-19 21:29:15 +01:00
Marwin Hochfelsner
c8ded2b243
Pre-center objects with embed-data 2025-02-18 00:16:19 +01:00
Tom Hughes
46f642d5cd Merge remote-tracking branch 'upstream/pull/5632' 2025-02-12 18:21:02 +00:00
Martin Raifer
c025613ff6
replace all occurrences of + 2025-02-12 16:23:31 +01:00
Martin Raifer
0b5fa06a39
lint 2025-02-12 14:10:25 +01:00
Martin Raifer
051ae5953f
workaround for iD bug #10761
the current version of iD (v2.31, before the fix for https://github.com/openstreetmap/iD/issue/10761: https://github.com/openstreetmap/iD/pull/10766), does not fully support `x-www-form-urlencoded` "query-style" strings in the hash: Specifically, spaces encoded as `+` will not be decoded back to ` `.

This workaround essentially temporarily reverts the behaviour of the website to the state before #5592, and can be dropped again with the next minor version upgrade of iD (`v2.32`).
2025-02-12 14:08:19 +01:00
Marwin Hochfelsner
5310c5b9dd Set map param with array 2025-02-12 04:34:01 +01:00
Holger Jeromin
c855d86bf8 Mark valid usecases for alert 2025-02-06 08:35:50 +01:00
Marwin Hochfelsner
1e57668c7e Simplify initialisation of iD 2025-02-05 19:56:01 +01:00
Martin Raifer
cb5157c492
Update to iD v2.31.0 2025-02-05 13:54:53 +01:00
Tom Hughes
46cd3a1114 Replace qs with URLSearchParams 2025-02-02 19:27:20 +00:00
Andy Allan
6b06be5e5d Fix some eslint errors (quotes, spacing and parseInt radix) on .js.erb files
These have been flagged by eslint-plugin-erb, and need to be fixed before
that plugin can be enabled.
2025-01-24 14:38:13 +00:00
Martin Raifer
9969bc5a24
Update to iD v2.30.1 2024-08-21 11:28:06 +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
Milos Brzakovic
9fe45bdfe3 iD api url update 2021-07-26 19:11:33 +02:00
Tom Hughes
0ff89c31e4 Remove both Potlatch versions
Fixes #2622
2021-01-05 21:18:45 +00:00
Quincy Morgan
b1694ce39e Update to iD v2.19.0 2020-10-27 17:46:24 -04:00
Tom Hughes
79447e7549 Replace querystring parser with qs yarn module 2020-08-06 20:51:55 +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
Bryan Housel
7fb85f1ca6 Pass through photo_overlay parameter
(re: https://github.com/openstreetmap/iD/issues/6492)
2019-06-17 17:26:24 -04:00
Quincy Morgan
3f2a42bf77 Add passthrough of new locale, maprules, and presets URL hash parameters to iD 2019-01-23 12:13:27 -05:00
Bryan Housel
4399cc793f Allow changeset source tag to be settable via url api
(see https://github.com/openstreetmap/iD/issues/4899)
2018-04-16 14:49:46 -04:00
Bryan Housel
2168c2867c Add iD disable_features parameter 2017-11-10 15:57:37 -05:00
Bryan Housel
8d2acb8ef0 Add iD hashtags parameter 2017-08-25 16:24:19 -04:00
Bryan Housel
3ab39f48ba Add iD walkthrough autostart parameter 2017-07-07 17:58:02 -04:00
Tom Hughes
293fb99467 Remove inline javascript from id views 2017-03-01 18:07:22 +00:00
Tom Hughes
fe159b2417 Correct name of zoom argument for Potlatch 2
Fixes #1471
2017-03-01 14:06:05 +00:00
Tom Hughes
1b21b8a209 Remove inline javascript from potlatch2 view 2017-03-01 00:12:42 +00:00
Tom Hughes
8c3d16ecc4 Remove inline javascript from potlatch view 2017-02-28 20:41:22 +00:00