fix: Tooltips bypass layer visibility and scale bar cutoff on PDF export
Deploy Standortplaner / deploy (push) Successful in 17s Details

This commit is contained in:
Johannes Baumeister 2026-07-03 21:46:32 +02:00
parent 67cecf839d
commit 242cdaa400
1 changed files with 3 additions and 4 deletions

7
app.js
View File

@ -895,7 +895,7 @@ document.addEventListener('DOMContentLoaded', async () => {
}).addTo(proximityLinesLayer);
const mid = L.latLng((t1.latlng.lat + t2.latlng.lat) / 2, (t1.latlng.lng + t2.latlng.lng) / 2);
line.bindTooltip(`${distM.toFixed(1)} m`, { permanent: true, direction: 'center', className: 'proximity-tooltip' }).openTooltip(mid);
line.bindTooltip(`${distM.toFixed(1)} m`, { permanent: true, direction: 'center', className: 'proximity-tooltip' });
}
}
}
@ -2680,7 +2680,7 @@ function processFeatureProximity(feature, t, color, threshold, type, proximityLi
permanent: true,
direction: 'center',
className: tooltipClass
}).openTooltip(mid);
});
}
} catch (err) {
console.warn("Distance calc error", err);
@ -3020,8 +3020,7 @@ async function resolveLayerConfig(isLocalFile, statusEl) {
font-size: 14px !important;
padding: 4px 8px !important;
box-shadow: 0 0 10px rgba(0,0,0,0.4) !important;
transform: scale(1.5) !important;
transform-origin: bottom left !important;
margin-bottom: 5px !important;
}
`;
document.head.appendChild(scaleStyle);