是否可以使用 bing maps js api 绘制道路?理想情况下,我会提供两个地理参考点,并且轨迹/道路将始终在同一条道路上。
基本上,我想强调一条道路。
利用map.GetDirections(new VELatLong(lat,lon),new VELatLong(lat,lon))
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"]);