Object.entries(properties)
            .map(([key, value]) => `<strong>${key}:</strong> ${value}`)
            .join('<br>');

        activeTooltip = L.tooltip({
            permanent: false,
            direction: 'auto',
            className: 'feature-tooltip',
        })
            .setContent(tooltipContent)
            .setLatLng(latlng)
            .addTo(map);
        }

        // Function to handle mousemove event
        function onFeatureMouseMove(e) {
        const latlng = e.latlng;

       