Commit graph

2412 commits

Author SHA1 Message Date
Anton Khorev
937d461106 Update arguments of data overlay interestingNode() 2025-01-07 11:26:15 +03:00
Tom Hughes
6e444155d6 Merge remote-tracking branch 'upstream/pull/5471' 2025-01-05 16:23:49 +00:00
Anton Khorev
c887f1d7b2 Use details attribute to render changeset bounding box
Do this instead of using L.OSM.DataLayer. DataLayer makes an extra request just to get the bbox. Also it expects bbox to always exist, which is not true for some changesets.
2025-01-05 18:18:33 +03:00
Anton Khorev
b816f5b27e Remove 'center' argument of addChangeset()
It is always set to true.
2025-01-05 17:28:36 +03:00
Anton Khorev
7a99295884 Remove zoomend listener on history unload 2025-01-05 15:02:25 +03:00
Anton Khorev
27aa2ed591 Move new note marker to click location
If not done, it's possible to lose the marker when starting from low zooms.
2025-01-01 02:34:22 +03:00
Anton Khorev
5603309026 Decrease new note marker opacity when zoomed out 2025-01-01 02:34:22 +03:00
Anton Khorev
feb7af2020 Let page.load proceed when zoomed out, disabling submit
Note that addNoteButton.hasClass("active") check in page.load is useless because page.unload removes this class.
2025-01-01 02:32:06 +03:00
Anton Khorev
17ab002c04 Remove active class from addNoteButton only in page.unload()
Same reasons as in the previous commit.
2025-01-01 02:13:59 +03:00
Anton Khorev
5542858315 Call removeNewNoteMarker() only from page.unload()
It was also called from noteCreated() but that triggered page.unload() via OSM.router.route().
2025-01-01 02:13:59 +03:00
Anton Khorev
6cc31259e4 Add addNewNoteMarker() and removeNewNoteMarker() functions
This ensures that marker is always added/removed together with its halo.
2025-01-01 02:13:59 +03:00
Anton Khorev
4ea6077ddb Convert newHalo() to addHalo() and removeHalo()
newHalo() wasn't always creating new halos. It had an event type argument that was checked against drag event. Depending on this check, newHalo() could remove the halo.
2025-01-01 01:53:55 +03:00
Anton Khorev
f1835c914c Move new note page.pushstate/popstate next to page.load 2024-12-31 23:47:55 +03:00
Anton Khorev
dc59b37fe1 Add new note marker to root map layer instead of noteLayer
We want the new note marker in the same layer with its halo. Also we don't want to put anything in noteLayer because it clears its contents on certain zoom levels.
2024-12-31 23:47:55 +03:00
Anton Khorev
18f3adbf5d Remove unused return value of addCreatedNoteMarker()
This function adds a marker to notes layer. This controller doesn't need to do anything with markers of existing notes.
2024-12-31 23:46:29 +03:00
Anton Khorev
ae5b7812cc Rename updateMarker() to addCreatedNoteMarker()
This function doesn't update any existing marker.
2024-12-31 23:46:29 +03:00
Anton Khorev
9d8ca8be11 Pass location instead of marker to createNote() 2024-12-31 23:42:40 +03:00
Anton Khorev
954eafd424 Move create note callback to button click handler 2024-12-31 23:37:34 +03:00
Anton Khorev
f169299b53 Don't pass url to createNote() 2024-12-31 23:25:11 +03:00
Anton Khorev
63a4f12550 Pass text instead of form to createNote() 2024-12-31 23:22:59 +03:00
Anton Khorev
fa0c12cdcd Disable new note submit button in click handler 2024-12-31 23:02:47 +03:00
Anton Khorev
c4709e2a05 Rename newNote to newNoteMarker 2024-12-31 22:37:41 +03:00
Anton Khorev
c4e473ed89 Wrap diary entry location coordinates 2024-12-25 00:55:36 +03:00
Anton Khorev
2ba85472be Change image download warning message to a list 2024-12-19 18:58:32 +03:00
Anton Khorev
6c1704b245 Add 'canDownloadImage' layer option 2024-12-19 18:58:32 +03:00
Tom Hughes
5ce51e9748 Merge remote-tracking branch 'upstream/pull/5419' 2024-12-19 08:42:02 +00:00
Anton Khorev
25e4a80760 Get note text only from textarea within left sidebar 2024-12-19 05:22:54 +03:00
Anton Khorev
2c57c66195 Center share popup inside the browser window 2024-12-19 04:25:15 +03:00
Anton Khorev
8a8c2517f2 Add 'canEmbed' layer option 2024-12-18 18:36:44 +03:00
Anton Khorev
2c84465cc2 Add map.getMapBaseLayer() 2024-12-18 18:31:46 +03:00
Anton Khorev
de0bf25499 Rename return values of getMapBaseLayerId() to layerId 2024-12-18 18:28:18 +03:00
Tom Hughes
7a2e53c225 Add Bluesky to social sharing buttons 2024-12-18 14:47:18 +00:00
Anton Khorev
7e7ede890e Merge branch 'pull/4985' 2024-12-18 16:35:01 +03:00
Emin Kocan
95e1aff234 Add social sharing functionality 2024-12-17 23:36:47 +01:00
Tom Hughes
326d4ecec0 Merge remote-tracking branch 'upstream/pull/5394' 2024-12-12 18:14:33 +00:00
Tom Hughes
325deabc91 Merge remote-tracking branch 'upstream/pull/5387' 2024-12-11 17:09:07 +00:00
Andy Allan
83043d6f1c
Merge pull request #5362 from AntonKhorev/color-mode-preference-map
Map color mode preference
2024-12-11 16:53:15 +00:00
Martin Raifer
1ba5b7fef0
iD: listen to manual hashchanges from iframe parent
Pan to the new `map` location when the hash change was not not triggered by map interaction from inside iD itself.

This mirrors the behaviour when manually editing the `map` hash parameter on osm.org outside of iD.

This also fixes https://github.com/openstreetmap/iD/issues/10592 (error in js console when iD is opened outside of an iframe by directly navigating to osm.org/id).
2024-12-11 14:59:57 +01:00
Anton Khorev
b87983c2ba Disable filter inheritance on tiles, apply filter to tile container 2024-12-11 13:23:08 +03:00
Anton Khorev
73170726e2 Add map filter css property 2024-12-11 13:23:08 +03:00
Tom Hughes
4d6df34c4b Merge remote-tracking branch 'upstream/pull/5389' 2024-12-10 18:57:31 +00:00
Anton Khorev
bfc8c5f6de Rename 'keyid' layer option to 'layerId' 2024-12-10 01:23:41 +03:00
Anton Khorev
dc52cdc612 Adjust browse line/icon height/alignment for text-only zooming 2024-12-09 13:22:54 +03:00
Anton Khorev
f051a7c1f5 Write browse element icons as <img> 2024-12-09 13:22:34 +03:00
Tom Hughes
7b05c1c060 Merge remote-tracking branch 'upstream/pull/5375' 2024-12-08 14:55:55 +00:00
Tom Hughes
bf4d8fc2d0 Merge remote-tracking branch 'upstream/pull/5386' 2024-12-08 11:27:18 +00:00
Anton Khorev
02257f7294 Allow specifying extra layer options in layers.yml 2024-12-07 19:21:36 +03:00
Anton Khorev
4b92c8e555 Let header username expand to screen width in small nav mode 2024-12-06 12:19:43 +03:00
Anton Khorev
821ebdd57b Use fetch() instead of iframe to make remote control requests 2024-12-04 12:30:19 +03:00
Anton Khorev
2d36aa74db Truncate if necessary and set dir=auto for message usernames 2024-12-03 10:48:59 +03:00