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;