kb0 / maps_toolkit

Dart library for area, distance, heading measurements
Apache License 2.0
46 stars 17 forks source link

how to update and calculate distance in polyline[help] #25

Closed mrtnetwork closed 1 year ago

mrtnetwork commented 1 year ago

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