Skip to content

Conversation

@obecny
Copy link

@obecny obecny commented Apr 25, 2024

geometryUtil readableDistance expects first param to be a number, wheraes here the string was passed.
Leaflet GeometryUtil 2024-04-25 11-57-03

https://github.com/makinacorpus/Leaflet.GeometryUtil/blob/master/src/leaflet.geometryutil.js#L67

This was causing an error

leaflet.geometryutil.js:70 Uncaught TypeError: distance.toFixed is not a function
2024-04-25 11-54-38

After this fix the error is gone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants