Testing locked scrolling for map

This commit is contained in:
eetnaviation
2024-05-10 09:11:16 +03:00
parent 1dafaf76e0
commit 3068c06e03

View File

@ -59,6 +59,11 @@
map.addLayer(mapnik);
map.setCenter(position, zoom);
map.getInteractions().forEach(function(interaction) {
if (interaction instanceof ol.interaction.MouseWheelZoom) {
interaction.setActive(false);
}
}, this);
// Function to handle form submission
document.getElementById('search-form').addEventListener('submit', function (event) {