google.maps.DirectionsService.route() および google.maps.DirectionsRenderer.setDirections() メソッドを使用して、旅のカスタム パーサーを作成せずに、目的地の情報ウィンドウのテキストを変更することは可能ですか?
API には、ルートのマーカーにアクセスできるものは何も表示されませんでした。
コードは必要ありません。はい/いいえだけで、正しい方向へのヒントが必要です。
現在の機能:
var リクエスト = { 原点: origPoint, 宛先: 新しい google.maps.LatLng(dest.lat(), dest.lng()), travelMode: google.maps.DirectionsTravelMode.DRIVING, 地域:「GB」 }; directionService.route(リクエスト、関数(結果、ステータス) { if (ステータス == google.maps.DirectionsStatus.OK) { directionDisplay.setDirections(結果); } });
ありがとう、サイ