마우스 포인터 커서 스타일을 Google지도 아이콘 마커에서 멈추게하려면 어떻게해야합니까? 현재 마커는 커서를 마우스로 가리키면 커서가 손 모양으로 바뀌는 링크와 같이 작동합니다. 당신이 cursor
속성을 설정할 수 있습니다,마우스 포인터 커서 스타일을 사용하는 Google지도 마커를 중지 하시겠습니까?
function addMarkerLargeMap(latlng, myTitle, html, price) {
markers.push(new google.maps.Marker({
position: latlng,
clickable: false,
map: map,
title: myTitle,
icon: "path-to-my-icon.png",
html: "<div style='width:100px;height:auto'>" + html + "</div>",
}));
또는 마커 옵션에서 false로
function addMarkerLargeMap(latlng, myTitle, html, price) {
markers.push(new google.maps.Marker({
position: latlng,
map: map,
title: myTitle,
icon: "path-to-my-icon.png",
html: "<div style='width:100px;height:auto'>" + html + "</div>",
}));
marker.setCursor ({cursor : 'default'}) – PiLHA