MrMufflon / Leaflet.Elevation

Leaflet plugin to view height profile of GeoJSON- and GPX polylines using d3
http://mrmufflon.github.io/Leaflet.Elevation
MIT License
276 stars 83 forks source link

Negative altitudes are incorrect on the height indicator #76

Open fbonzon opened 6 years ago

fbonzon commented 6 years ago

Steps

Actual

When mousing over negative altitudes on profile, height indicator has incorrect size. It is much longer than expected. This is because the normalized altitude formula assumes lowest is 0.

Expected

The height indicator has size normalized to the range "lowest altitude to highest altitude".