new kakao.maps.LatLng(127.348276, 37.8233726);
로 CustomOverlay를 만들어서 지도에 잘 찍히는데
marker 값을 보면 position이 이상하게 저장됩니다.
왜그럴까요?
var latlng = new kakao.maps.LatLng(127.348276,37.8233726);
var box = '<div class="box"><img src="./images/apticon.png" style="z-index:11"></div><div class="content">'+ㅁ+'</div>';
//console.log(latlng);
marker = new kakao.maps.CustomOverlay({
map: map,
content:box, //html형식으로 sytle지정
position: latlng, //마커 좌표
xAnchor: 0.5,
yAnchor: 1,
//draggable: false, //마커 이동
clickable: true, // 마커를 클릭했을 때 지도의 클릭 이벤트가 발생하지 않도록 설정합니다
});
console.log(latlng);
marker.setMap(map);