Snap drawn line to roads This sample shows how to snap a line drawn using the drawing tools to the road network. To run this sample, press the line drawing button in the top corner of the map and draw a line near roads. When you complete the drawing (double click, press ESC, or press the line drawing button again), the Azure Maps route direction service will be used to calculate logical route path on the road network following the drawn line. The black line is the original drawn line and the blue line is the snapped line on the road network.

Modules used: Drawing, Services