diff --git a/CHANGES b/CHANGES index 5e397c64..de0c77ea 100644 --- a/CHANGES +++ b/CHANGES @@ -5,7 +5,7 @@ CHANGELOG 0.30.2 (unreleased) ------------------- -- +- Fix icon control. 0.30.1 (2024-06-17) ------------------- 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);