문제

Is it possible to draw a road using bing maps js api? Ideally I would supply two georeference points and the trajectory/road would be always on the same road.

Basically, I want to highlight a road.

도움이 되었습니까?

해결책

Use 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"]);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top