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