|
|
@ -2,7 +2,7 @@ import { useEffect } from 'react'; |
|
|
|
|
|
|
|
|
|
|
|
export const NaverMapSearch = props => { |
|
|
|
export const NaverMapSearch = props => { |
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
console.log('>>>>', props.naver.maps.Service); |
|
|
|
// console.log('>>>>', props.naver.maps.Service);
|
|
|
|
props.naver.maps.Service.geocode( |
|
|
|
props.naver.maps.Service.geocode( |
|
|
|
{ |
|
|
|
{ |
|
|
|
address: '산곡동' |
|
|
|
address: '산곡동' |
|
|
@ -14,7 +14,7 @@ export const NaverMapSearch = props => { |
|
|
|
|
|
|
|
|
|
|
|
var result = response.result, // 검색 결과의 컨테이너
|
|
|
|
var result = response.result, // 검색 결과의 컨테이너
|
|
|
|
items = result.items; // 검색 결과의 배열
|
|
|
|
items = result.items; // 검색 결과의 배열
|
|
|
|
console.log(result); |
|
|
|
// console.log(result);
|
|
|
|
|
|
|
|
|
|
|
|
// do Something
|
|
|
|
// do Something
|
|
|
|
} |
|
|
|
} |
|
|
|