Closed adamduren closed 8 years ago
If it helps any my coordinates were far from the start and end points and I think that messed it up in drawing the help line.
Hi, sorry for the delay! Yes, you are right - this seems to be a bug in the lib. The data passed with the event is gathered here: https://github.com/ffwdme/ffwdme.js/blob/master/src/core/navigation.js#L164-L201
But, the nearest point can be null
in a scenario like yours. I think we should make the drawHelpLine
method of the Leaflet component null safe.
Would you be interested in submitting a patch? I would be happy to help you however I can.
Cheers, Christian
I'm just starting to dive into the library and would be willing to contribute back to the library once I get more familiar with the concepts of mapping.
This sounds good, thank you!
I am trying to get started using the library from the guides but am encountering an issue. I looked at the function where the error occured and the desiredPos argument is null which is causing the error. I followed up the stacktrack and it doesn't appear to ever be set. Not sure if I am doing something wrong or if it is a bug in the library. Thanks in advance for the help!