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