From e9978bba8fc63d4517d1a793c94a314954dff636 Mon Sep 17 00:00:00 2001
From: Marwin Hochfelsner <50826859+hlfan@users.noreply.github.com>
Date: Tue, 17 Jun 2025 06:35:44 +0200
Subject: [PATCH] Rename map key control icon path to legend
---
app/views/layouts/_control_icons.html.erb | 2 +-
app/views/layouts/map.html.erb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/views/layouts/_control_icons.html.erb b/app/views/layouts/_control_icons.html.erb
index c99de4664..5a4764e14 100644
--- a/app/views/layouts/_control_icons.html.erb
+++ b/app/views/layouts/_control_icons.html.erb
@@ -3,7 +3,7 @@
"zoomout" => { :d => "M4 9v1l1 1H16l1-1V9L16 8H5Z" },
"geolocate" => { :d => "M10 10v6h2L16 6V4H14L4 8v2Z" },
"layers" => { :d => "M4.094 13.5 9.5 16h1l5.406-2.5L17 14v1l-6.5 3h-1L3 15V14l1.094-.5Zm0-4L9.5 12h1l5.406-2.5L17 10v1l-6.5 3h-1L3 11V10l1.094-.5ZM9.5 3h1L17 6V7l-6.5 3h-1L3 7V6L9.5 3Z" },
- "key" => { :d => "M9 3 8 4V6L9 7h2l1-1V4L11 3zM9 9 8 10v6l1 1h2l1-1V10L11 9z" },
+ "legend" => { :d => "M9 3 8 4V6L9 7h2l1-1V4L11 3zM9 9 8 10v6l1 1h2l1-1V10L11 9z" },
"share" => { :d => "m15 2-1 1V5h-2c-6 0-6 7-6 7s2-4 6-4h2v2l1 1 4-4.5L15 2ZM2 6 1 7v9l1 1h10l1-1V10h-1c-.32 0-.66.073-1 .188V15H3V8h1.531c.344-.669.792-1.348 1.344-2H2Z" },
"note" => { :d => "M17 12H15v2H13v2h2v2h2V16h2V14H17V12ZM3 12H6l2 3 2-3h3l1-1V4L13 3H3L2 4v7Z" }
}
diff --git a/app/views/layouts/map.html.erb b/app/views/layouts/map.html.erb
index 3a15ec9a5..b23270794 100644
--- a/app/views/layouts/map.html.erb
+++ b/app/views/layouts/map.html.erb
@@ -51,7 +51,7 @@
+ :locals => { :icons => %w[zoomin zoomout geolocate layers legend share note query] } %>