Fix color coding by cost. Closes #340. (#341)

Fix color coding by cost. Closes #340.

This makes sure it is relative to the length of the path.
This commit is contained in:
Antonin Delpeuch 2020-10-24 12:28:26 +02:00 committed by GitHub
parent 652de90c06
commit 7c02d78f0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 7 deletions

View file

@ -236,6 +236,7 @@ L.BRouter = L.Class.extend({
node: parseInt(featureMessage[7]),
initial: parseInt(featureMessage[8])
},
distance: parseInt(featureMessage[3]),
wayTags: featureMessage[9],
nodeTags: featureMessage[10]
};