I am designing a navigation system for my app, but my problem is that I want to redraw the polyline from the user's point and calculate the new line spacing like navigation. I find the current position in a multiline using the locationIndexOnEdgeOrPath method, remove the previous positions, add the user's location to the beginning of the multiline, and redraw the multiline, in 50% of cases a little line forward or it is drawn back and also polyline distance is wrong
I am designing a navigation system for my app, but my problem is that I want to redraw the polyline from the user's point and calculate the new line spacing like navigation. I find the current position in a multiline using the locationIndexOnEdgeOrPath method, remove the previous positions, add the user's location to the beginning of the multiline, and redraw the multiline, in 50% of cases a little line forward or it is drawn back and also polyline distance is wrong