@@ -666,15 +684,29 @@ export default function OperationApprovalsContainer({ mode }) {
거리측정
-
-
+
+
-
+
diff --git a/src/utility/MapUtils.js b/src/utility/MapUtils.js
index 203287e9..f61faec3 100644
--- a/src/utility/MapUtils.js
+++ b/src/utility/MapUtils.js
@@ -566,3 +566,17 @@ export const getDraw = () =>
}
]
});
+
+/**
+ * 그리기모드 셋팅
+ * @param {'LINE' | 'POLYGON' | 'CIRCLE'} mode custom 타입
+ */
+export const handlerStartMode = (mode, drawObj) => {
+ if (mode === 'LINE') {
+ drawObj.changeMode('draw_line_string');
+ } else if (mode === 'POLYGON') {
+ drawObj.changeMode('draw_polygon');
+ } else if (mode === 'CIRCLE') {
+ drawObj.changeMode('draw_circle', { initialRadiusInKm: 100 / 1000 });
+ }
+};