我尝试使用此代码,但是航点不显示
此代码完美无缺,但我无法添加第三个
GMDirection1.DirectionsRequest.Origin.Address := 'My spot 1';
GMDirection1.DirectionsRequest.Destination.Address := 'My spot 2';
GMDirection1.Execute;
但这一个,根本不是
GMDirection1.DirectionsRequest.WaypointsList.Add.Location.Address := 'My spot 1';
GMDirection1.DirectionsRequest.WaypointsList.Add.Location.Address := 'My spot 2';
GMDirection1.DirectionsRequest.WaypointsList.Add.Location.Address := 'My spot 3';
// or GMDirection1.AddWaypoint.Location.Address := 'My spot';
// I try all Waypoint.Add unsuccessful
GMDirection1.Execute;
我的地图仍然绝望地空着 有人可以帮帮我吗?
答案 0 :(得分:0)
你需要做
GMDirection1.DirectionsRequest.Origin.Address := 'My spot 1';
GMDirection1.DirectionsRequest.Destination.Address := 'My spot 3';
GMDirection1.DirectionsRequest.WaypointsList.Add.Location.Address := 'My spot 2';
GMDirection1.Execute;
此致