diff --git a/app.js b/app.js index 90332df..9d97b12 100644 --- a/app.js +++ b/app.js @@ -403,7 +403,7 @@ document.addEventListener('DOMContentLoaded', async () => { ksfAngle, ksfMirrored, totalHeight: geoms.totalHeight, layers: { - marker: L.marker(latlng, { draggable: true, icon: turbineIcon }), + marker: L.marker(latlng, { draggable: state.isEditMode, icon: turbineIcon }), sweptArea: L.geoJSON(geoms.sweptArea, { style: { color: '#00c8ff', weight: 1, dashArray: '4, 4', fillOpacity: 0.1 } }), techDist: L.geoJSON(geoms.techDist, { style: { color: '#ffcc00', weight: 2, dashArray: '5, 5', fillOpacity: 0 } }), techDistSmall: L.geoJSON(geoms.techDistSmall, { style: { color: '#ffcc00', weight: 1.5, dashArray: '2, 4', fillOpacity: 0 } }), @@ -413,7 +413,7 @@ document.addEventListener('DOMContentLoaded', async () => { blf: L.geoJSON(geoms.blf, { style: { color: '#9b59b6', weight: 1, dashArray: '3, 3', fillOpacity: 0.2 } }), mf: L.geoJSON(geoms.mf, { style: { color: '#95a5a6', weight: 1, dashArray: '2, 2', fillOpacity: 0.15 } }), rotationHandle: L.marker(latlng, { - draggable: true, + draggable: state.isEditMode, icon: L.divIcon({ className: 'rotation-handle', html: `