-
+
{/*
*/}
- {/* DetailView가 존재할 때만 렌더링 isSearchModalOpen이 true면 visible=false로 팝업 숨김 */}
+ {/* isSearchModalOpen이 true면 visible=false로 팝업 숨김 */}
{isOpen && featureData && !isSearchModalOpen && (
)}
- {/* SearchView가 존재할 때만 렌더링 */}
- {SearchView && (
-
- )}
+
-
+
{isSearch && (
diff --git a/packages/common/business_components/src/ui/map/lib/gis.core.js b/packages/common/business_components/src/ui/map/lib/gis.core.js
index 72a584970..ddfcec3a1 100644
--- a/packages/common/business_components/src/ui/map/lib/gis.core.js
+++ b/packages/common/business_components/src/ui/map/lib/gis.core.js
@@ -1,24 +1,26 @@
import MousePosition from 'ol/control/MousePosition';
import ScaleLine from 'ol/control/ScaleLine';
-import { getTopLeft } from 'ol/extent';
import Feature from 'ol/Feature';
-import GeoSJON from 'ol/format/GeoJSON';
import WKT from 'ol/format/WKT';
-import { Point } from 'ol/geom';
import LinearRing from 'ol/geom/LinearRing';
import Draw from 'ol/interaction/Draw';
import TileLayer from 'ol/layer/Tile';
-import VectorLayer from 'ol/layer/Vector';
import * as olProj from 'ol/proj';
import VectorSource from 'ol/source/Vector';
-import TileWMTS from 'ol/source/WMTS';
import XYZ from 'ol/source/XYZ';
+import GeoSJON from 'ol/format/GeoJSON';
import { Fill, Stroke, Style } from 'ol/style';
import CircleStyle from 'ol/style/Circle';
+import VectorLayer from 'ol/layer/Vector';
+import { Point } from 'ol/geom';
+import { getTopLeft } from 'ol/extent';
+import TileWMTS from 'ol/source/WMTS';
import WMTSTileGrid from 'ol/tilegrid/WMTS';
// import { get as getProjection } from 'ol/proj';
-import { register } from 'ol/proj/proj4';
import proj4 from 'proj4';
+import { register } from 'ol/proj/proj4';
+import olSourceImageWMS from 'ol/source/ImageWMS';
+import { GeoJSON } from 'ol/format';
import GisOlEditLayer from './gis.edit';
import GisOlLayer from './gis.layer';
@@ -92,7 +94,7 @@ GisApp.core.prototype = {
target: '',
centerX: 37.2806094,
centerY: 127.0032502,
- zoom: 12,
+ zoom: 15,
minZoom: 6,
maxZoom: 20,
},
@@ -560,7 +562,6 @@ GisApp.core.prototype = {
*
* Returns:
*/
- // 레이어를 지도에 표시/숨김
setLayerOnMap: function (layerIds, visible, addQurryFlter) {
for (let i in layerIds) {
let id = layerIds[i];
@@ -571,14 +572,10 @@ GisApp.core.prototype = {
const layerCode = GisApp.layerCode[id];
const queryFlter = layerCode?.flterSql || '' + ' ' + (addQurryFlter || '');
layerCode['flterSql'] = queryFlter;
- //layer = this.addWmsLayer(layerCode);
-
- // WFS 레이어 생성 및 지도에 추가
+ //layer = this.addWmsLayer(layerCode);
layer = this.addWfsLayer(layerCode);
}
}
-
- // 선택 인터랙션 및 스냅 기능 설정
if (GisApp.Module.select) {
this.setSelectInteraction();
}
diff --git a/packages/common/business_components/src/ui/map/lib/gis.layer.js b/packages/common/business_components/src/ui/map/lib/gis.layer.js
index d9657c313..097c90ba5 100644
--- a/packages/common/business_components/src/ui/map/lib/gis.layer.js
+++ b/packages/common/business_components/src/ui/map/lib/gis.layer.js
@@ -77,7 +77,15 @@ GisOlLayer.prototype = {
let lyrTyNm = options.lyrTyNm;
let typename = this.storageNm + lyrTyNm;
- if(options.lyrTyNm == "om_dt_untrt_swg_rain"){ //중점우수토실실
+ if(options.lyrTyNm == "om_dt_untrt_swg_rain" //중점우수토실
+ || options.lyrTyNm == "om_wqlt_station" //관측소
+ || options.lyrTyNm == "tb_wr_bdst_ruse_fclt" //재이용시설
+ || options.lyrTyNm == "tb_wr_rnwtr_utztn_fclt" //빗물이용시설
+ || options.lyrTyNm == "tb_wr_rswtr_fclt" //중수도시설
+ || options.lyrTyNm == "tb_wr_htdfl_fclt" //온배수시설
+ || options.lyrTyNm == "tb_wr_tmpr_dmd_co" //잠재수요처
+ )
+ {
url = GisApp.SN_GEOSERVER_URL;
typename = lyrTyNm;
}
diff --git a/packages/common/business_components/src/ui/sdmInsertForm/form.tsx b/packages/common/business_components/src/ui/sdmInsertForm/form.tsx
index 6ccaac946..2d7d2bf90 100644
--- a/packages/common/business_components/src/ui/sdmInsertForm/form.tsx
+++ b/packages/common/business_components/src/ui/sdmInsertForm/form.tsx
@@ -3,9 +3,9 @@ import { SelectBox } from "../select";
import { Input } from "@common/components";
import { FormUi } from "../form_ui";
import { useCallback, useEffect, useState } from "react";
+import { AsYouType } from "libphonenumber-js";
import type { ControllerRenderProps, UseFormReturn } from "react-hook-form";
import { SdmSearchForm } from "./sdmNameBox";
-import { set } from "date-fns";
// 수요처 정보
export type DemandCompType = {
@@ -79,6 +79,19 @@ export function SdmRegForm({ form, onCheckboxChange, selectSidoData, selectSigun
const [updateCoNm, setUpdateNm] = useState