fix: Prevent dragging turbines when edit mode is inactive
Deploy Standortplaner / deploy (push) Successful in 17s
Details
Deploy Standortplaner / deploy (push) Successful in 17s
Details
This commit is contained in:
parent
c8f6a7118a
commit
ae780f5586
4
app.js
4
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: `
|
||||
|
|
|
|||
Loading…
Reference in New Issue