2

我已经使用方向渲染器()计算了 2 个地方的路线;现在我需要下载 pdf 格式的路线。可能吗。我的路线图代码是

var map = new google.maps.Map(document.getElementById("mapp"),myOptions);

latlng=new google.maps.LatLng(glat,glon);

$('#mapDiv1').modal({closeClass: "mapCloseImg"});

directionsDisplay.setMap(map);
directionsDisplay.setPanel(document.getElementById("panel"));
var request = {
  origin: acity,
  destination:latlng,
  travelMode: google.maps.DirectionsTravelMode.DRIVING
};

directionsService.route(request, function(response, status) {
  if (status == google.maps.DirectionsStatus.OK) {
    directionsDisplay.setDirections(response);
  }
}); 
4

0 回答 0