私は、Google マップの JavaScript API を介してルート案内を取得するために、directionsService を使用しています。問題は、個々のステップを取得し、それらを mvc オブジェクトの一部にしたいので、それらをクリックするとデフォルトとしてマップにレンダリングされることです
directionsDisplay.setDirections(response);
します。いくつかのコード:
var directionsService = new google.maps.DirectionsService();
directionsDisplay.setMap(map);
var request = {
origin : a,
destination : b,
travelMode : google.maps.DirectionsTravelMode.DRIVING
};
directionsService.route(request, function(response, status) {
if (status == google.maps.DirectionsStatus.OK) {
directionsDisplay.setDirections(response);
//Instead of setting directions to a panel i want to
//set just one to a panel and yet have it link to the
//map like the above does.
}});