diff --git a/src/components/map/naver/NaverMap.js b/src/components/map/naver/NaverMap.js index 1811e49..0350496 100644 --- a/src/components/map/naver/NaverMap.js +++ b/src/components/map/naver/NaverMap.js @@ -171,31 +171,31 @@ export const NaverCustomMap = () => { }, []); useEffect(() => { - uamPosition.map(uam => { - const name = uam.name; - const position = new naver.maps.LatLng(uam.lat, uam.lon); - const cont = - name.substr(0, 1) == 'R' - ? [ - '
', - `${name}`, - '
' - ] - : [ - '
', - `${name}`, - '
' - ]; - - new naver.maps.Marker({ - position: position, - map: mapObject, - icon: { - content: cont.join(''), - anchor: new naver.maps.Point(20, 20) - } - }); - }); + // uamPosition.map(uam => { + // const name = uam.name; + // const position = new naver.maps.LatLng(uam.lat, uam.lon); + // const cont = + // name.substr(0, 1) == 'R' + // ? [ + // '
', + // `${name}`, + // '
' + // ] + // : [ + // '
', + // `${name}`, + // '
' + // ]; + + // new naver.maps.Marker({ + // position: position, + // map: mapObject, + // icon: { + // content: cont.join(''), + // anchor: new naver.maps.Point(20, 20) + // } + // }); + // }); // coordCenter = new nl(); coordCenter.map((val, idx) => { const position = new naver.maps.LatLng(