How to stop drawing the polyline in Google maps when path reaches in some defined are

المشرف العام

Administrator
طاقم الإدارة
I am trying to draw the polyline between the 2 points and my requirement is, the polyline should stop drawing when it reaches the specified area surrounding the destination. I mean I don't want the line to end exactly on destination, instead it should end on destination or when it is near to that with some error margin. Reason being, I have my destination point on the other side of the road, and when I draw the path, it is taking U-Turn rather than stopping at the destination.

Thanks.



أكثر...
 
أعلى