Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support showing polyline distance if enabled
As discussed in Leaflet/Leaflet#5266 , modern web browsers like Chrome/Chromium/Opera support touch events. Thus, L.Browser.touch returns true even on non-touch screens. In any case, the _getTooltipText should display the distance if showLength is set to true. Without this change, showLength is broken in many browsers for Polyline.
- Loading branch information