Lepší hoover na obvody.

master
Kowalski 2026-11-01 07:35:49 +01:00
parent c54b372571
commit d6158d1c9f
2 changed files with 7 additions and 15 deletions

View File

@ -10,6 +10,6 @@ final class Konstanty
* Verze aplikace.
* @var string
*/
public const verze = '1.2';
public const verze = '1.3';
}

View File

@ -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;