How do I draw markers on a polyline at equal intervals?

  • 0
    Good evening, can someone help.
    How to draw markers on a polyline at equal intervals?
    For example, we know the position of one marker on the polyline, how can we put n markers on the polyline from it at equal intervals?
    JavaScript Chloe Wiley, Jan 11, 2019

  • 1 Answers
  • 0
    There is such a library l.geometryutil, you can use it ... who can tell you something?

    I know that it has a function to find the nearest point on the polyline to a given one, and there is also a function to find the distance between points. But still, if you need to arrange many objects across equal distances, then how to find out where the line ends and all that. Because right now I wrote something and if the polylines end then the markers are piled up at the 1st point found as the closest one on this polyline ..
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!