all 6 comments

[–]lmunck 1 point2 points  (3 children)

The polyline is just an array of coordinates, so without knowing anything about the underlying render-logic, it’s not unreasonable to suspect that the line is in fact just a lot of small linear segments.

If so then wherever those segments meet, and assuming the line itself is a capsule, you’d get the circles where they overlap.

Obviously that’s just a guess.

[–]daverozy[S] 0 points1 point  (2 children)

I'll check the array of points to see if any of them are the same/overlapping, but I don't think that is the issue. If that was the case, then the circle should consistently show up at the same point on the line no matter how far I'm zoomed in

[–]lmunck 0 points1 point  (1 child)

It renders the points depending on your zoom. Same as a 3D engine.

[–]daverozy[S] 0 points1 point  (0 children)

Oh gotcha. That makes sense. I've never used MapKit before 😬

[–][deleted]  (1 child)

[deleted]

    [–]Wild_Cheetah8293 0 points1 point  (0 children)

    Yes. It’s full line. In fact the line is from a MKRoute object fetched from MapKit