Polyline endpoints are appearing pointed

Hi Hannah,

I am facing one issue with polyline. The polyline end points are appearing pointed. Could you please let me know whether it is the expected behavior or it’s a bug?

Please find the attached screenshot of sandcastle example.



polyline_issue_code.txt (682 Bytes)

Hello Gowtham,

Thank you for providing a code example!

This is happening because the first segment of your line is going north, and the second segment of your line is going south. The point you’re seeing is the corner created by the polyline. It looks exaggerated because the angle between your line segments is so small.