답변 2개
구글맵에서 지도를 만들었고, 구글맵 자신의 위치표시 기능(Geolocation API)을 추가하려고 했습니다만...
유저 자신의 위치가 마커되어 보여지려면 어떻게 하면 될까요?
혹시 도와주실수 있으시면 쪽지로 부탁드립니다.
<iframe src="https://www.google.com/maps/d/embed?mid=1q1qqRGtD5gSBkZpjJspA5ACowzFAl5oL" width="640" height="480"></iframe>
<script>
function scrollMap(position) {
// Scrolls the map so that it is centered at
// (position.coords.latitude, position.coords.longitude).
}
// Request repeated updates.
var watchId = navigator.geolocation.watchPosition(scrollMap);
function buttonClickHandler() {
// Cancel the updates when the user clicks a button.
navigator.geolocation.clearWatch(watchId);
}
</script>
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인