From 9d358d736184c595900b85070fd33e74b2883580 Mon Sep 17 00:00:00 2001 From: hhjk00 Date: Fri, 13 Oct 2023 16:15:27 +0900 Subject: [PATCH] =?UTF-8?q?uamPosition=20=EC=A3=BC=EC=84=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/map/naver/NaverMap.js | 50 ++++++++++++++-------------- 1 file changed, 25 insertions(+), 25 deletions(-) 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(