From 0462e1751d0799c77eafae082d17714ead0d4c66 Mon Sep 17 00:00:00 2001 From: Gagaro Date: Mon, 15 Jul 2024 09:06:40 +0200 Subject: [PATCH] Fix icon control --- leaflet/static/leaflet/leaflet.extras.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leaflet/static/leaflet/leaflet.extras.js b/leaflet/static/leaflet/leaflet.extras.js index 779a0e52..7c1c40e6 100644 --- a/leaflet/static/leaflet/leaflet.extras.js +++ b/leaflet/static/leaflet/leaflet.extras.js @@ -18,7 +18,7 @@ L.Control.ResetView = L.Control.extend({ L.Util.setOptions(this, options); const titleElement = document.getElementById("Control-ResetView-TITLE"); - const iconElement = document.getElementById("Control-ResetView-TITLE"); + const iconElement = document.getElementById("Control-ResetView-ICON"); if (!!titleElement) { L.Control.ResetView.TITLE = JSON.parse(titleElement.textContent);