|
|
@ -75,6 +75,7 @@ export const LanncDraw = props => { |
|
|
|
//자세히보기 두번째에는 area가 사라져..! 왜?!
|
|
|
|
//자세히보기 두번째에는 area가 사라져..! 왜?!
|
|
|
|
//첫번째 열면 도형 그려진 다음에 areaCoordList가 사라짐 왜????
|
|
|
|
//첫번째 열면 도형 그려진 다음에 areaCoordList가 사라짐 왜????
|
|
|
|
//clearMode가 자동으로 실행돼서 props.handlerInitCoordinates도 실행되기 때문 ㅠㅠ 그래서 초기화 됨
|
|
|
|
//clearMode가 자동으로 실행돼서 props.handlerInitCoordinates도 실행되기 때문 ㅠㅠ 그래서 초기화 됨
|
|
|
|
|
|
|
|
//해결완료. 나중에 꼬일 때 까먹지 말라고 주석 삭제 안함
|
|
|
|
if (area.areaType && area.areaType !== '') { |
|
|
|
if (area.areaType && area.areaType !== '') { |
|
|
|
if (props.centeredModal && detailLayer) handlerPastDraw(); |
|
|
|
if (props.centeredModal && detailLayer) handlerPastDraw(); |
|
|
|
} |
|
|
|
} |
|
|
@ -143,7 +144,6 @@ export const LanncDraw = props => { |
|
|
|
point = []; |
|
|
|
point = []; |
|
|
|
|
|
|
|
|
|
|
|
geojson.features = []; |
|
|
|
geojson.features = []; |
|
|
|
// mapObject.getSource('detail').setData(geojson);
|
|
|
|
|
|
|
|
handlerGetSourceSetData(); |
|
|
|
handlerGetSourceSetData(); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
@ -168,7 +168,6 @@ export const LanncDraw = props => { |
|
|
|
props.handlerDrawType('RESET'); |
|
|
|
props.handlerDrawType('RESET'); |
|
|
|
// mapObject.on('click', clickEve);
|
|
|
|
// mapObject.on('click', clickEve);
|
|
|
|
} |
|
|
|
} |
|
|
|
// mapObject.getSource('detail').setData(geojson);
|
|
|
|
|
|
|
|
handlerGetSourceSetData(); |
|
|
|
handlerGetSourceSetData(); |
|
|
|
} else if (drawType === 'POLYGON') { |
|
|
|
} else if (drawType === 'POLYGON') { |
|
|
|
if (path.length > 2) { |
|
|
|
if (path.length > 2) { |
|
|
@ -188,7 +187,6 @@ export const LanncDraw = props => { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
handlerGetSourceSetData(); |
|
|
|
handlerGetSourceSetData(); |
|
|
|
// mapObject.getSource('detail').setData(geojson);
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
@ -251,7 +249,6 @@ export const LanncDraw = props => { |
|
|
|
); |
|
|
|
); |
|
|
|
addMileStone(formatCoord, ''); |
|
|
|
addMileStone(formatCoord, ''); |
|
|
|
} |
|
|
|
} |
|
|
|
// mapObject.getSource('detail').setData(geojson);
|
|
|
|
|
|
|
|
handlerGetSourceSetData(); |
|
|
|
handlerGetSourceSetData(); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
@ -264,7 +261,6 @@ export const LanncDraw = props => { |
|
|
|
} |
|
|
|
} |
|
|
|
guideLine.geometry.coordinates.push(formatCoord); |
|
|
|
guideLine.geometry.coordinates.push(formatCoord); |
|
|
|
|
|
|
|
|
|
|
|
// mapObject.getSource('detail').setData(geojson);
|
|
|
|
|
|
|
|
handlerGetSourceSetData(); |
|
|
|
handlerGetSourceSetData(); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
@ -285,7 +281,6 @@ export const LanncDraw = props => { |
|
|
|
|
|
|
|
|
|
|
|
// 이거.. 왜 안해도 잘 되지....?
|
|
|
|
// 이거.. 왜 안해도 잘 되지....?
|
|
|
|
// handlerReplaceDuplicate('polygon', polygon);
|
|
|
|
// handlerReplaceDuplicate('polygon', polygon);
|
|
|
|
// mapObject.getSource('detail').setData(geojson);
|
|
|
|
|
|
|
|
handlerGetSourceSetData(); |
|
|
|
handlerGetSourceSetData(); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
@ -306,7 +301,6 @@ export const LanncDraw = props => { |
|
|
|
handlerSaveAreaInfo(''); |
|
|
|
handlerSaveAreaInfo(''); |
|
|
|
|
|
|
|
|
|
|
|
addMileStone(formatCoord, 100); |
|
|
|
addMileStone(formatCoord, 100); |
|
|
|
// mapObject.getSource('detail').setData(geojson);
|
|
|
|
|
|
|
|
handlerGetSourceSetData(); |
|
|
|
handlerGetSourceSetData(); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
@ -366,7 +360,6 @@ export const LanncDraw = props => { |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// mapObject.getSource('detail').setData(geojson);
|
|
|
|
|
|
|
|
handlerGetSourceSetData(); |
|
|
|
handlerGetSourceSetData(); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
@ -525,8 +518,7 @@ export const LanncDraw = props => { |
|
|
|
handlerRemoveMarker(); |
|
|
|
handlerRemoveMarker(); |
|
|
|
handlerCreateAllMarker(paths); |
|
|
|
handlerCreateAllMarker(paths); |
|
|
|
|
|
|
|
|
|
|
|
// mapObject.getSource('detail').setData(geojson);
|
|
|
|
mapObject.setPaintProperty('waypoint', 'circle-radius', 8); |
|
|
|
mapObject.setPaintProperty('waypoint', 'circle-radius', 10); |
|
|
|
|
|
|
|
handlerGetSourceSetData(); |
|
|
|
handlerGetSourceSetData(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|