I can assign L.Map to a global variable but not anything under L.Routing.control (I tried just assigning c.route.coordinates). I need the LatLng[] from the routing control for other functions. Async did not work as I did before to resolve other global variable assignments in TypeScript. Anything that works?
First time Github user, I saw a question flair but I dunno how to add one to title.
This is my code:
However I get this error for the "this.path" line:
I can assign L.Map to a global variable but not anything under L.Routing.control (I tried just assigning c.route.coordinates). I need the LatLng[] from the routing control for other functions. Async did not work as I did before to resolve other global variable assignments in TypeScript. Anything that works?