From d6158d1c9f79ad3bc0a8f0a63047716ac6929029 Mon Sep 17 00:00:00 2001 From: Kowalski Date: Sun, 1 Nov 2026 07:35:49 +0100 Subject: [PATCH] =?UTF-8?q?Lep=C5=A1=C3=AD=20hoover=20na=20obvody.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Core/Konstanty.php | 2 +- www/js/stari.js | 20 ++++++-------------- 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/app/Core/Konstanty.php b/app/Core/Konstanty.php index d5f3c95..35a4492 100644 --- a/app/Core/Konstanty.php +++ b/app/Core/Konstanty.php @@ -10,6 +10,6 @@ final class Konstanty * Verze aplikace. * @var string */ - public const verze = '1.2'; + public const verze = '1.3'; } \ No newline at end of file diff --git a/www/js/stari.js b/www/js/stari.js index 6da495e..553fa44 100644 --- a/www/js/stari.js +++ b/www/js/stari.js @@ -516,28 +516,20 @@ iconSize: [58, 46], iconAnchor: [29, 14], }), - interactive: false, - keyboard: false, + interactive: true, + keyboard: true, }); marker.obvodMesice = info ? info.mesice : null; marker.odPrideleni = info ? info.prideleni : null; marker.obvodProbiha = nedokonceny; + marker.on('click', function (e) { + L.DomEvent.stopPropagation(e); + map.fitBounds(layer.getBounds(), { padding: [24, 24] }); + }); znacky.addLayer(marker); } layer.bindPopup(popupHtml(cislo, info)); - layer.on({ - mouseover: function (e) { - e.target.setStyle({ weight: 4, fillOpacity: 0.8 }); - e.target.bringToFront(); - }, - mouseout: function (e) { - geojson.resetStyle(e.target); - }, - click: function (e) { - map.fitBounds(e.target.getBounds(), { padding: [24, 24] }); - }, - }); } var geojson = null;