3

Is it possible to draw polylines with one point (x,y) and given specific angles e.g. for 45 degrees, and given length?
In other words: without specifying the end point.

1 Answer 1

3

Just write a routine to work out the end point using trigonometry. If the distances are large then you may want to get fancy and add in the Haversine formula. If you don't want to write one yourself, have a look at the leaflet GeometryUtils.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.