2
Google지도 API를 사용하고 있으며 현재 위치를 강조 표시하는 맞춤 마커가 있습니다. 가능하다면 Google지도에서 장소 이름을 클릭 할 때 얻을 수있는 Google지도 길 찾기 대화 상자 (예 : THIS)를 클릭하면 가능합니다. 분량으로 마커를 확대하도록 설정했지만,이 기능을 작동 시키면 분명히 그 기능을 제거 할 것입니다.Google Maps API로 마커로가는 길
미리 도움을 청하십시오. this example에서 처리 방향과
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
function initialize() {
var location = new google.maps.LatLng(50.871622, -4.131561);
var mapOptions = {
center: location,
zoom: 11,
scrollwheel: false
};
var map = new google.maps.Map(document.getElementById("map"),
mapOptions);
var image = {
url: 'img/mapmarker.png',
};
var marker = new google.maps.Marker({
position: location,
map: map,
animation: google.maps.Animation.DROP,
icon: image,
title: 'Deer Park Dairy'
});
google.maps.event.addListener(marker, 'click', function() {
map.setZoom(15);
map.setCenter(marker.getPosition());
});
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
당신이에 사용자를 보내시겠습니까 [지도 구글 ] (http://maps.google.com) 또는 [API 기반지도에서 길 찾기 생성] (https://developers.google.com/maps/documentation/javascript/directions)? [google지도로 보내는 예] (http://www.geocodezip.com/v3_MW_example_map4.html) - [API 길 찾기 서비스를 사용한 예] (http://www.geocodezip.com/v3_MW_example_map4c.html) – geocodezip
하고 싶습니다. 내지도에서 길 찾기를 생성하세요. 미안 이미 당신이 링크 된 섹션을 보았습니다, 나는 정말로 그것을 이해하기 위해 고심하고 있습니다. 내가하고 싶은 일은 사용자가 내 마커를 클릭 한 다음 Google지도에서 평소와 같이 입력 한 위치 또는 '현재 위치'에서 마커에 대한 사용자 길 찾기를지도에 제공하도록합니다. – bert
오, 와우. 다른 링크를 발견했습니다. "API 길잡이 서비스를 사용한 예"가 완벽 할 것입니다. – bert