츙돌사항 수정사항 반영
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user