From 19e43d3ad12c85f40268aed143d9917c017eec80 Mon Sep 17 00:00:00 2001 From: Johannes Baumeister Date: Mon, 11 May 2026 09:51:27 +0200 Subject: [PATCH] Fix measuring tool bug and correct Nordex BLF position --- app.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 8809c4f..4d5597f 100644 --- a/app.js +++ b/app.js @@ -110,6 +110,12 @@ document.addEventListener('DOMContentLoaded', async () => { let placementMode = false; let measureMode = null; // 'dist' or 'area' + let measurePoints = []; + let measureLayer = null; + let mouseMarker = L.marker([0, 0], { + icon: L.divIcon({ className: 'measure-mouse-marker', iconSize: [0, 0] }), + interactive: false + }).addTo(state.map); let activeTurbine = null; // Proj4 Definition for UTM32 (EPSG:25832) @@ -200,8 +206,9 @@ document.addEventListener('DOMContentLoaded', async () => { const nvm = [[24.4, -5.5], [34.9, -5.5], [34.9, -31.5], [24.4, -31.5], [24.4, -5.5]]; mfParts = [amf, nvm]; - // BLF (Blattlagerfläche): 90,00m (L) x 15,00m (B). Next to AMF on the wider side. - blfCoords = [[7.5, -65.15], [22.5, -65.15], [22.5, -155.15], [7.5, -155.15], [7.5, -65.15]]; + // BLF (Blattlagerfläche): 90,00m (L) x 15,00m (B). + // In the drawing, it starts next to the tower and KSF. + blfCoords = [[7.5, -5.5], [22.5, -5.5], [22.5, -95.5], [7.5, -95.5], [7.5, -5.5]]; } else { // Enercon / Vestas / GE (Standard) blfCoords = [[-41, 9], [-61, 9], [-61, -81], [-41, -81], [-41, 9]];