diff --git a/src/views/laanc/FlightArea.js b/src/views/laanc/FlightArea.js index f97adc9..d4a3e94 100644 --- a/src/views/laanc/FlightArea.js +++ b/src/views/laanc/FlightArea.js @@ -28,6 +28,7 @@ import geoJson from '../../components/map/geojson/airArea.json'; import axios from '../../modules/utils/customAxiosUtil'; import { ErrorModal } from '../../components/modal/ErrorModal'; import { FeatureAirZone } from '../../components/map/mapbox/feature/FeatureAirZone'; +import { WeatherContainer } from '../../containers/basis/flight/plan/WeatherContainer'; export default function FlightArea({ centeredModal, setCenteredModal, page }) { const dispatch = useDispatch(); @@ -38,12 +39,14 @@ export default function FlightArea({ centeredModal, setCenteredModal, page }) { const [mapObject, setMapObject] = useState(); const [isMapLoad, setIsMapLoad] = useState(false); const [previewLayer, setPreviewLayer] = useState(); - + const [formModal, setFormModal] = useState(false); const [alertModal, setAlertModal] = useState({ isOpen: false, title: '', desc: '' }); + //날씨 임시 데이터 + const [wheather, setWheather] = useState([]); const previewGeo = { type: 'FeatureCollection', @@ -60,6 +63,7 @@ export default function FlightArea({ centeredModal, setCenteredModal, page }) { if (area.areaType && area.areaType !== '') { if (!centeredModal && previewLayer) handlerPreviewDraw(); } + setWheather(areaCoordList); } }, [areaCoordList, centeredModal, previewLayer]); @@ -168,6 +172,11 @@ export default function FlightArea({ centeredModal, setCenteredModal, page }) { } }; + // 날씨 handler + const handlerWeather = () => { + setFormModal(!formModal); + }; + const handlerMapInit = () => { mapboxgl.accessToken = MAPBOX_TOKEN; @@ -371,6 +380,11 @@ export default function FlightArea({ centeredModal, setCenteredModal, page }) { > 초기화 + {wheather[0]?.coordList[0].lat != 0 ? ( + + ) : null}