You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Corridor in m gets doubled. Why? It makes no sense to me because upon a simple google, svg stroke width, and by extension leaflet polyline stroke weight are representing the STROKE WIDTH.
I guess the error came because @mikhailshilkov thought that it is a circle radius (seeing how default settings have round lines) and we needed its diameter, but it is wrong. Stroke width represents exactly what it says, the actual line thickness. Circles in svg are different entities and they have the radius as a separate parameter.
Solution: remove the * 2.
I am myself too lazy to do a pull request, but wanted to warn someone who might see this someday.
The text was updated successfully, but these errors were encountered:
kurenai-11
changed the title
(CRITICAL!) Incorrect corridor width
[CRITICAL!] Incorrect corridor width
Nov 1, 2023
I don't know if I am stupid but I think this library did a critical error.
In the function
Corridor in m gets doubled. Why? It makes no sense to me because upon a simple google, svg stroke width, and by extension leaflet polyline stroke weight are representing the STROKE WIDTH.
I guess the error came because @mikhailshilkov thought that it is a circle radius (seeing how default settings have round lines) and we needed its diameter, but it is wrong. Stroke width represents exactly what it says, the actual line thickness. Circles in svg are different entities and they have the radius as a separate parameter.
Solution: remove the
* 2
.I am myself too lazy to do a pull request, but wanted to warn someone who might see this someday.
The text was updated successfully, but these errors were encountered: