From 5a73f05b7823daad8fbfa67f220bcdeeb30316d6 Mon Sep 17 00:00:00 2001 From: sanguu Date: Thu, 25 Aug 2022 16:20:01 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BB=A4=EB=B0=8B=20=EC=9B=90=EC=83=81?= =?UTF-8?q?=EB=B3=B5=EA=B5=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../basis/flight/plan/FlightPlanAreaMap.js | 25 ++----------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/src/components/basis/flight/plan/FlightPlanAreaMap.js b/src/components/basis/flight/plan/FlightPlanAreaMap.js index bd317bea..1c9736cf 100644 --- a/src/components/basis/flight/plan/FlightPlanAreaMap.js +++ b/src/components/basis/flight/plan/FlightPlanAreaMap.js @@ -44,28 +44,7 @@ const FlightPlanAreaMap = (props) => { setMode(mapControl.drawType) } - //console.log("상현>>",mapAreaCoordList[0].coordList[0].lat); - console.log("상현>>",map); - const NaverMapInit = () => { - if(!mapAreaCoordList[0].coordList[0].lat){ - debugger - const mapOptions = { - center: new naver.maps.LatLng(mapAreaCoordList[0].coordList[0].lat, mapAreaCoordList[0].coordList[0].lon), - // center: new naver.maps.LatLng(37.520357, 126.610166), - //center: new naver.maps.LatLng(, ), - // zoom: 10, - zoom: 15, - zoomControl: true, - mapTypeId: naver.maps.MapTypeId.NORMAL, - zoomControlOptions: { - position: naver.maps.Position.LEFT_CENTER, - style: naver.maps.ZoomControlStyle.SMALL - } - }; - setMap(new naver.maps.Map('map', mapOptions)); - } - else if(!(mapAreaCoordList[0].coordList[0].lat)){ - debugger + const NaverMapInit = () => { const mapOptions = { // center: new naver.maps.LatLng(36.56793936069445, 127.85101412107547), center: new naver.maps.LatLng(37.520357, 126.610166), @@ -80,7 +59,7 @@ const FlightPlanAreaMap = (props) => { }; setMap(new naver.maps.Map('map', mapOptions)); } - } + const handlerDrawType = val => { dispatch(drawTypeChangeAction(val)); };