|
|
@ -317,7 +317,7 @@ export default function OperationApprovalsContainer({ mode }) { |
|
|
|
//현재 선택한 sno 및 areacoordList 저장
|
|
|
|
//현재 선택한 sno 및 areacoordList 저장
|
|
|
|
const handlerDetail = async area => { |
|
|
|
const handlerDetail = async area => { |
|
|
|
console.log('>>', area); |
|
|
|
console.log('>>', area); |
|
|
|
setSelected(area[0].planAreaSno); |
|
|
|
setSelected([area[0].planAreaSno]); |
|
|
|
|
|
|
|
|
|
|
|
dispatch(clientSaveAreaCoordinateList(area)); |
|
|
|
dispatch(clientSaveAreaCoordinateList(area)); |
|
|
|
|
|
|
|
|
|
|
@ -430,7 +430,7 @@ export default function OperationApprovalsContainer({ mode }) { |
|
|
|
fitZoomPaths = enveloped.geometry.coordinates[0]; |
|
|
|
fitZoomPaths = enveloped.geometry.coordinates[0]; |
|
|
|
handlerFitBounds(mapObject, fitZoomPaths, 400, 'POLYGON', 'flight'); |
|
|
|
handlerFitBounds(mapObject, fitZoomPaths, 400, 'POLYGON', 'flight'); |
|
|
|
|
|
|
|
|
|
|
|
if (areaCoordList.length !== 1 || !areaCoordList[0]?.key) { |
|
|
|
// if (areaCoordList.length !== 1 || !areaCoordList[0]?.key) {
|
|
|
|
mapObject?.getSource('operationLayer')?.setData(operationLayer); |
|
|
|
mapObject?.getSource('operationLayer')?.setData(operationLayer); |
|
|
|
let dataBlock = null; |
|
|
|
let dataBlock = null; |
|
|
|
mapObject?.on('mousemove', 'polygon-flight', e => { |
|
|
|
mapObject?.on('mousemove', 'polygon-flight', e => { |
|
|
@ -479,7 +479,7 @@ export default function OperationApprovalsContainer({ mode }) { |
|
|
|
dataBlock.remove(); |
|
|
|
dataBlock.remove(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
// }
|
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|