From eb6cc2e017282799c6e9ca61169199adf46b4532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?junh=5Feee=28=EC=9D=B4=EC=A4=80=ED=9D=AC=29?= Date: Wed, 24 Aug 2022 14:26:30 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B4=80=EC=A0=9C=20-=20=EB=8D=B0=EC=9D=B4?= =?UTF-8?q?=ED=84=B0=EB=B8=94=EB=A1=9D=20=EC=9B=80=EC=A7=81=EC=9E=84=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/map/naver/dron/DronMarker.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/map/naver/dron/DronMarker.js b/src/components/map/naver/dron/DronMarker.js index d92182ac..2cd33c99 100644 --- a/src/components/map/naver/dron/DronMarker.js +++ b/src/components/map/naver/dron/DronMarker.js @@ -195,12 +195,11 @@ export const DronMarker = props => { const position = new naver.maps.LatLng(item.lat, item.lng); if (arrMarkers) { - const isExists = arrMarkers.find( - ele => ele.id === item.objectId - ); + const isExists = arrMarkers.find( ele => ele.id === item.objectId ); + const isInfos = arrInfos.find( info => info._id === item.objectId ) if (isExists) { moveMarkers(isExists, position); - moveInfos(isExists, position); + moveInfos(isInfos, position); } else { addMarkers(position, item.objectId, item.controlId); }