From 126b3d8b9739b2f116f6a508b249e7ae7f004e28 Mon Sep 17 00:00:00 2001 From: sanguu516 Date: Mon, 2 Sep 2024 11:56:39 +0900 Subject: [PATCH] =?UTF-8?q?fix/axios=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/map/mapbox/MapBoxMap.js | 59 -------------------------- 1 file changed, 59 deletions(-) diff --git a/src/components/map/mapbox/MapBoxMap.js b/src/components/map/mapbox/MapBoxMap.js index 237f0c70..6a4f9b1c 100644 --- a/src/components/map/mapbox/MapBoxMap.js +++ b/src/components/map/mapbox/MapBoxMap.js @@ -41,7 +41,6 @@ import flatUlsan from '../../map/geojson/flatUlsanAirArea.json'; import { clientMapInit } from '@src/redux/features/control/map/mapSlice'; import { getDraw } from '@src/utility/MapUtils'; -import axios from '@src/utility/customAxiosUtil'; // import { AreaBufferList } from '@src/redux/features/laanc/laancThunk'; @@ -121,64 +120,6 @@ export default function MapBoxMap({ handlerDrawObjInit }) { } }, [mapState?.areaType]); - const re = [ - [129.396663, 35.586386, 58], - [129.396511, 35.580117, 58], - [129.395024, 35.573965, 58], - [129.392246, 35.568115, 58], - [129.388261, 35.562747, 58], - [129.383192, 35.558024, 58], - [129.377193, 35.554087, 58], - [129.370444, 35.551058, 58], - [129.363153, 35.549028, 58], - [129.355538, 35.548058, 58], - [129.347833, 35.548178, 58], - [129.34027, 35.549385, 58], - [129.333079, 35.551642, 58], - [129.326479, 35.554879, 58], - [129.320669, 35.559, 58], - [129.315827, 35.563879, 58], - [129.312099, 35.569367, 58], - [129.309598, 35.575298, 58], - [129.308402, 35.581493, 58], - [129.306799, 35.600553, 58], - [129.306944, 35.606823, 58], - [129.308425, 35.612976, 58], - [129.311199, 35.618827, 58], - [129.315181, 35.624198, 58], - [129.32025, 35.628924, 58], - [129.326253, 35.632863, 58], - [129.333006, 35.635895, 58], - [129.340305, 35.637927, 58], - [129.347928, 35.638897, 58], - [129.355642, 35.638777, 58], - [129.363213, 35.637569, 58], - [129.370411, 35.635311, 58], - [129.377016, 35.632071, 58], - [129.382828, 35.627947, 58], - [129.38767, 35.623066, 58], - [129.391395, 35.617575, 58], - [129.393891, 35.611642, 58], - [129.395081, 35.605447, 58], - [129.396663, 35.586386, 58] - ]; - - const newData = []; - - const fetchElevations = re.map(([lon, lat, elev], index) => - axios - .post('api/comn/elev/ground', [{ lat, lon }]) - .then(res => [lon, lat, res.data[0].elev + re[index][2]]) - ); - - Promise.all(fetchElevations) - .then(results => { - console.log('>>', results); - }) - .catch(error => { - console.error('Error fetching elevations:', error); - }); - // 공역 생성 const handlerCreateAirSpace = ( map,