From 41602b2c2cdca7397ee581ab482b44676711b261 Mon Sep 17 00:00:00 2001 From: yschoi Date: Thu, 12 Jun 2025 21:41:09 +0900 Subject: [PATCH] =?UTF-8?q?lodash=20=EB=9D=BC=EC=9D=B4=EB=B8=8C=EB=9F=AC?= =?UTF-8?q?=EB=A6=AC=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/ui/map/lib/gis.select.js | 2 +- .../business_components/src/ui/map/lib/gis.style.js | 13 +++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/packages/common/business_components/src/ui/map/lib/gis.select.js b/packages/common/business_components/src/ui/map/lib/gis.select.js index 7586ef3fb..21ab39609 100644 --- a/packages/common/business_components/src/ui/map/lib/gis.select.js +++ b/packages/common/business_components/src/ui/map/lib/gis.select.js @@ -32,7 +32,7 @@ GisOlSelect.prototype = { selectFeatureFlag: false, initialize: function (map, options) { this.map = map; - _.extend(this.defaults, options); + Object.assign(this.defaults, options); this.setInteraction(); this.pointerMoveEventHandler(); }, diff --git a/packages/common/business_components/src/ui/map/lib/gis.style.js b/packages/common/business_components/src/ui/map/lib/gis.style.js index f791592cf..713347f54 100644 --- a/packages/common/business_components/src/ui/map/lib/gis.style.js +++ b/packages/common/business_components/src/ui/map/lib/gis.style.js @@ -8,8 +8,6 @@ import Text from 'ol/style/Text.js'; import Point from 'ol/geom/Point.js'; import RegularShape from 'ol/style/RegularShape.js'; import Overlay from 'ol/Overlay'; -import _ from 'lodash'; -//import DOMPurify from 'dompurify'; import { createPortal } from 'react-dom'; import ReactDOM from 'react-dom/client'; import React from 'react'; @@ -96,7 +94,7 @@ GisOlStyle.prototype = { scale = Math.max(minScale, Math.min(maxScale, scale)); image.setScale(scale); style.setImage(image); - _.extend(style, options); + Object.assign(style, options); return style; }, line: function (layer, options, feature, resolution) { @@ -125,7 +123,7 @@ GisOlStyle.prototype = { color, }); style.setFill(fill); - _.extend(style, options); + Object.assign(style, options); return style; }, lineLabelPoligon: function (layer, options, feature, resolution) { @@ -152,7 +150,7 @@ GisOlStyle.prototype = { } style.setFill(fill); style.setStroke(stroke); - _.extend(style, options); + Object.assign(style, options); return style; }, imagePoligon: function (layer, options, feature, resolution) { @@ -169,8 +167,7 @@ GisOlStyle.prototype = { image.setScale(1); style.setGeometry(retGeom); style.setImage(image); - - _.extend(style, options); + Object.assign(style, options); return style; }, setOverlay: function (layer, feature, overlayHtml) { @@ -267,7 +264,7 @@ GisOlStyle.prototype = { style.setStroke(null); style.setFill(null); style.setText(text); - _.extend(style, options); + Object.assign(style, options); return style; },