Plugin for the Leaflet JavaScript library to show areas of reachability based on time or distance for different modes of travel using the openrouteservice isochrones API.
MIT License
65
stars
7
forks
source link
v1.0.0 content of range select lists displays numbers with many decimal places for certain interval values #6
Example: distance in km with a minimum of 0.1, maximum of 1 and an interval of 0.1 produces the following:
0.1 km 0.2 km 0.30000000000000004 km 0.4 km 0.5 km 0.6 km 0.7 km 0.7999999999999999 km 0.8999999999999999 km 0.9999999999999999 km
The reason this happens is outlined on https://floating-point-gui.de/