[openstreetmap/openstreetmap-website] Replace custom SVG map controls with Bootstrap Icons (Fixes #6681) (PR #6695)

Marwin Hochfelsner notifications at github.com
Mon Jan 12 19:00:23 UTC 2026


@hlfan commented on this pull request.



> @@ -5,7 +5,7 @@
 <fieldset>
   <legend><%= t ".location" -%></legend>
 
-  <%= render :partial => "layouts/control_icons", :locals => { :icons => %w[zoomin zoomout] } %>
+  <%= render :partial => "layouts/control_icons", :locals => { :icons => %w[plus-lg dash-lg] } %>

Why are you calling the deleted partial?

> @@ -82,7 +82,7 @@ class SiteTest < ApplicationSystemTestCase
       find_field("Map Notes").hover # try to trigger disabled tooltip
     end
     within "#map" do
-      zoom_out = find_link("Zoom Out")
+      zoom_out = find(".leaflet-control-zoom-out")

Why was this changed?

>        .attr("title", OSM.i18n.t("javascripts.site.queryfeature_tooltip"))
       .appendTo($container);
 
-    $(L.SVG.create("svg"))
-      .append($(L.SVG.create("use")).attr("href", "#icon-query"))
-      .attr("class", "h-100 w-100")
-      .appendTo(link);
+    link.append($("<i>").addClass("bi bi-question-lg"));

Can this be moved to before the link is added to the container?
```suggestion
      .attr("title", OSM.i18n.t("javascripts.site.queryfeature_tooltip"))
      .append($("<i>").addClass("bi bi-question-lg"));
      .appendTo($container);
```

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

Message ID: <openstreetmap/openstreetmap-website/pull/6695/review/3652261152 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260112/74e933b4/attachment.htm>


More information about the rails-dev mailing list