mapbox / mapbox-unity-sdk

Mapbox Unity SDK - https://www.mapbox.com/unity/
Other
719 stars 213 forks source link

Directions Mapbox not working as expected. #1680

Open madhugk opened 3 years ago

madhugk commented 3 years ago

I have integrated Directions to show a direction line between two points on runtime in zoomable map. But I see the direction line is not accurate as they are giving wrong directions at the moment (RoutingProfile is walking seems to be affected by the part of map which is visible, as it changes when you zoom in/out) Can I achieve this by disabling the query when you zoom in/out. Also I want to do dotted line instead of this default mesh line for the direction ( hope that's doable) but I see it breaks up a lot in zooming. Please suggest me what could be done for accuracy and zooming. Thank you. Directions1 - off the screen and breaks up when zoom out. Screenshot 2020-09-24 at 10 01 11 - showing directions over the river which is not accurate.

brnkhy commented 3 years ago

@madhugk current implementation of directions is just a basic example and if I remember correct, might not work well on dynamic maps (pan&zoom). Dotted line is also a little difficult in 3d and your best option would be creating a line and texturing it as a dotted line. I'm sorry I couldn't help much. I would love to work on directions improvements but might not happen soon due to some other ongoing work.

cavanju commented 3 years ago

@madhugk How did you accomplish these directions? Are they placed based on Lat en Lon or did you manually place them?