diff --git a/apps/wr/app/(with-layout)/map/mainMap/page.tsx b/apps/wr/app/(with-layout)/map/mainMap/page.tsx index ece39452f..fea40f812 100644 --- a/apps/wr/app/(with-layout)/map/mainMap/page.tsx +++ b/apps/wr/app/(with-layout)/map/mainMap/page.tsx @@ -4,12 +4,9 @@ import Gis from "@common/business_components/ui/map/Gis"; import { useEffect, useRef, useState, useCallback } from "react"; import { mapService } from "../service"; import GisApp from "@common/business_components/ui/map/lib/gis.core"; -<<<<<<< HEAD:apps/wr/app/map/mainMap/page.tsx import { SearchBar } from "@common/business_components/ui/map/searchBar/searchBar"; -======= import { useWrStore } from "@/app/store"; import { getFeatureCd } from "@/components/lib/func/\bmapUtil"; ->>>>>>> 2bfd50cff260ec1eb1eea772d1c22d06b771dfe2:apps/wr/app/(with-layout)/map/mainMap/page.tsx const Map = () => { const { comMap } = useWrStore((state) => state); @@ -94,12 +91,10 @@ const Map = () => { }; // SearchModal, GisContent 등에서 호출 -<<<<<<< HEAD:apps/wr/app/map/mainMap/page.tsx const onFeatureFocus = (data: any) => { console.log(data); }; -======= const onFeatureSelect = (data: any) => { const map = gisMaps.current; if (!map) { @@ -209,7 +204,6 @@ const Map = () => { return result; }; ->>>>>>> 2bfd50cff260ec1eb1eea772d1c22d06b771dfe2:apps/wr/app/(with-layout)/map/mainMap/page.tsx const renderDetailView = useCallback( (props: any) => { const isFeature = props.featureData.getProperties(); diff --git a/apps/wr/app/map/searchBar/searchBar.tsx b/apps/wr/app/map/searchBar/searchBar.tsx index 17f164646..ab3dacb0e 100644 --- a/apps/wr/app/map/searchBar/searchBar.tsx +++ b/apps/wr/app/map/searchBar/searchBar.tsx @@ -32,6 +32,9 @@ export function SearchBar({ facilityTypes, onFeatureFocus, }: SearchBarProps) { + console.log('gisMaps ', gisMaps) + console.log('onFeatureFocus ', onFeatureFocus) + const [sidoValue, setSidoValue] = useState("0"); const [sigunValue, setSigunValue] = useState("0"); const [facilityType, setFacilityType] = useState( @@ -223,6 +226,7 @@ export function SearchBar({ }; const moveFocus = (feature: any) => { + console.log('feature ' ,feature) // console.log('searchbar:moveFocus') // const map = gisMaps.current;