Browse Source

관제 - 데이터블록 움직임 수정

feature/auth
junh_eee(이준희) 2 years ago
parent
commit
eb6cc2e017
  1. 7
      src/components/map/naver/dron/DronMarker.js

7
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);
}

Loading…
Cancel
Save