diff --git a/app.js b/app.js index 176cbc8..35dfddb 100644 --- a/app.js +++ b/app.js @@ -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);