diff --git a/src/containers/flight/OperationApprovalsContainer.js b/src/containers/flight/OperationApprovalsContainer.js index a1e8904d..1c9c037e 100644 --- a/src/containers/flight/OperationApprovalsContainer.js +++ b/src/containers/flight/OperationApprovalsContainer.js @@ -69,7 +69,7 @@ export default function OperationApprovalsContainer({ mode }) { // 시군구 const [district, setDistrict] = useState('전체'); // 미니맵 레이어 - const [previewLayer, setPreviewLayer] = useState(); + // const [previewLayer, setPreviewLayer] = useState(); const { map, mapType } = useSelector(state => state.mapState); @@ -311,9 +311,9 @@ export default function OperationApprovalsContainer({ mode }) { } dispatch(clientSetIsMapLoading(true)); - const preview = mapInstance.getSource('preview'); + // const preview = mapInstance.getSource('preview'); - if (preview) setPreviewLayer(preview); + // if (preview) setPreviewLayer(preview); setIsMapLoading(true); @@ -377,26 +377,18 @@ export default function OperationApprovalsContainer({ mode }) { ? '수평' : '-'; - const content = - '
' + - '
' + - '' + - data?.applyNo + - '' + - '
' + - '
' + - '
' + - '' + - '비행구역' + - (idx + 1) + - ' / ' + - '주소-' + - ' / ' + - divCd + - '' + - '
' + - '
' + - '
'; + const content = ` +
+
+ ${data?.applyNo} +
+
+
+ 비행구역 ${idx + 1} / 주소- / ${divCd} +
+
+
+ `; if (mapObject) { const dataBlock = new mapboxgl.Popup({ diff --git a/src/containers/rightMenuContainer.js b/src/containers/rightMenuContainer.js index d1176102..6be46e6b 100644 --- a/src/containers/rightMenuContainer.js +++ b/src/containers/rightMenuContainer.js @@ -114,7 +114,12 @@ function RightMenuContainer() { }; const handlerDetail = area => { - setSelected(area.planAreaSno); + if (area.length === 1) { + setSelected(area[0].planAreaSno); + } else { + setSelected(null); + } + handlerOpnerPostMessage('detail', { area }); };