diff --git a/src/components/basis/flight/plan/FlightPlanAreaMap.js b/src/components/basis/flight/plan/FlightPlanAreaMap.js index a75ed5a6..56d9edf7 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)); };