[openstreetmap/openstreetmap-website] Tags editor (PR #6758)

Roman Deev notifications at github.com
Thu Jan 29 21:57:26 UTC 2026


@deevroman commented on this pull request.



> +
+  $(document).on("click", "a.edit_object_tags", async function (e) {
+    e.preventDefault();
+    e.stopPropagation();
+
+    e.target.setAttribute("disabled", true);
+
+    const [, type, id] = location.pathname.match(/\/(node|way|relation)\/([0-9]+)/);
+    const objectInfo = await downloadObjectInfo(type, id);
+    const currentTags = extractTagsFromObjectInfo(objectInfo);
+
+    const $browseSection = $("#sidebar_content h2 + div").first();
+
+    const $errorBox = $("<p>");
+
+    const $editorTextarea = $("<textarea>")

A text field definitely has advantages over something like a table (it's not for nothing that iD has two editing modes)

We might need something like a Help button with a tooltip

<img width="312" height="296" src="https://github.com/user-attachments/assets/5fe89025-9251-4751-b0fd-7dbb1fc24483" />


-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6758#discussion_r2743724909
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6758/review/3725259517 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260129/29918501/attachment.htm>


More information about the rails-dev mailing list