Turfjs / turf

A modular geospatial engine written in JavaScript and TypeScript
https://turfjs.org/
MIT License
9.35k stars 941 forks source link

Drawing perpendicular lines using turf library #585

Closed marie15 closed 7 years ago

marie15 commented 7 years ago

Hi, I want to draw orthogonal lines on map using leaflet, I research for leaflet geodesic plugin but I couldn't find function for doing that, so my question is turf library provide this kind of function and can I use it with leaflet? Any help is appreciated. Thank you

rowanwins commented 7 years ago

Hi @marie15

Unfortunately there is nothing available at the moment. Can you provide a picture of the sort of thing you're wanting because Im having a hard time visualising it.

stebogit commented 7 years ago

@marie15 you could use @turf-bearing or @turf-rhumb-bearing to get the slope of one line and add 90 degrees to draw its orthogonal one.