1

是否可以使用 bing maps js api 绘制道路?理想情况下,我会提供两个地理参考点,并且轨迹/道路将始终在同一条道路上。

基本上,我想强调一条道路。

4

2 回答 2

3

利用map.GetDirections(new VELatLong(lat,lon),new VELatLong(lat,lon))

于 2009-09-04T15:17:52.560 回答
1

Take a look at the "Get a multi-point route" sample in the interactive SDK under Get a multi-point route and directions.

This is the relevant function call:

map.GetDirections(["Microsoft", "Everett WA", "Bellingham WA"]);
于 2009-09-04T15:18:36.833 回答