메인이랑 머지

This commit is contained in:
leeheejin 2025-10-28 09:49:26 +09:00
parent b09a7c8398
commit 39bd9c3351
1 changed files with 6 additions and 0 deletions

View File

@ -776,6 +776,12 @@ export default function MapTestWidgetV2({ element }: MapTestWidgetV2Props) {
const ctpName = feature?.properties?.CTP_KOR_NM; // 시/도명 (예: 경상북도)
const sigName = feature?.properties?.SIG_KOR_NM; // 시/군/구명 (예: 군위군)
// 🔍 디버그: GeoJSON 속성 확인
if (ctpName === "경상북도" || sigName?.includes("군위") || sigName?.includes("영천")) {
console.log(`🔍 GeoJSON 속성:`, { ctpName, sigName, properties: feature?.properties });
console.log(`🔍 매칭 시도할 폴리곤:`, polygons.map(p => p.name));
}
// 폴리곤 매칭 (시/군/구명 우선, 없으면 시/도명)
const matchingPolygon = polygons.find(p => {
if (!p.name) return false;