Dotted route when travel mode for driving is not supported

Hello.

I am trying to make the route for my map, and I can’t seem to find a way to show the route as dotted when the travel mode for driving is not available - like on the google maps.

This is how my maps route looks like:
image

This is how google maps route looks like:
image

This is how the code for the route looks like for now:

If there is any fix, can anybody help?

Thank you :slight_smile:

A dotted route appears when travel mode for driving is not supported due to restricted roads, private areas, or missing map data. It indicates that the suggested path may not be fully accessible by car.