From 113ea9e4b4c411c85b0d05de919e5a10a69b24d4 Mon Sep 17 00:00:00 2001 From: junh_eee Date: Fri, 26 Aug 2022 09:38:57 +0900 Subject: [PATCH] . --- src/components/basis/flight/plan/FlightPlanAreaMap.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/basis/flight/plan/FlightPlanAreaMap.js b/src/components/basis/flight/plan/FlightPlanAreaMap.js index a75ed5a..56d9edf 100644 --- a/src/components/basis/flight/plan/FlightPlanAreaMap.js +++ b/src/components/basis/flight/plan/FlightPlanAreaMap.js @@ -44,8 +44,8 @@ const FlightPlanAreaMap = (props) => { const ModeInit = () => { setMode(mapControl.drawType) - } + const NaverMapInit = () => { const center = {}; const bufferzoom ={}; @@ -56,7 +56,7 @@ const FlightPlanAreaMap = (props) => { bufferzoom.bufferzoom =13; } else if(areaCoordList[0].bufferZone>=2000 && areaCoordList[0].bufferZone <5000){ - bufferzoom.bufferzoom =12; + bufferzoom.bufferzoom =12; } else if(areaCoordList[0].bufferZone>=5000 && areaCoordList[0].bufferZone <=9000){ bufferzoom.bufferzoom =11; @@ -77,11 +77,11 @@ const FlightPlanAreaMap = (props) => { zoomControlOptions: { position: naver.maps.Position.LEFT_CENTER, style: naver.maps.ZoomControlStyle.SMALL - } + } }; setMap(new naver.maps.Map('map', mapOptions2)); - } } + const handlerDrawType = val => { dispatch(drawTypeChangeAction(val)); };