Straight line route between two markers

Hi, so I was wondering if it’s possible to connect two markers by a straight line on Tom Tom? Sorry for asking such a simple question.

You can add it in similar way to this example: https://developer.tomtom.com/maps-sdk-web-js/functional-examples#examples,map,geojson-overlay-solid-fill.html
Just use LineString with your points coordinates.

1 Like