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

Marwin Hochfelsner notifications at github.com
Sat Jan 10 22:47:51 UTC 2026


@hlfan requested changes on this pull request.

Why even still keep the `map-control` SVGs around?

> @@ -11,16 +11,13 @@ L.OSM.note = function (options) {
       .attr("title", OSM.i18n.t("javascripts.site.createnote_tooltip"))
       .appendTo($container);
 
-    $(L.SVG.create("svg"))
-      .append($(L.SVG.create("use")).attr("href", "#icon-note"))
-      .attr("class", "h-100 w-100")
-      .appendTo(link);
+    $("<i>").addClass("bi bi-chat-square-fill").appendTo(link);

To stay consistent with the context menu:

```suggestion
    $("<i>").addClass("bi bi-chat-square-text-fill").appendTo(link);
```

Also, could that be chained onto `link` with `.append()`?

> @@ -11,16 +11,13 @@ L.OSM.query = function (options) {
       .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);
+    $("<i>").addClass("bi bi-question-square-fill").appendTo(link);

I goofed with `question-fill`, I meant this:

```suggestion
    $("<i>").addClass("bi bi-question-lg").appendTo(link);
```

Similarly in the context menu.

> @@ -2,7 +2,7 @@
   <h1><%= t ".title" %></h1>
 <% end %>
 
-<%= render :partial => "layouts/control_icons", :locals => { :icons => %w[zoomin zoomout geolocate] } %>
+<%= render :partial => "layouts/control_icons", :locals => { :icons => %w[plus-lg dash-lg cursor-fill] } %>

```suggestion
```
I'd go remove the `_control_icons` partial and the SVG files too while at it.

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

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


More information about the rails-dev mailing list