Closed HAmamiya closed 5 months ago
Incorrect time shown in axis
Duplicate of: https://github.com/Raruto/leaflet-elevation/issues/170
Is it possible, like speed, to change miles to nautical miles?
Here's the relevant code:
👋 Raruto
Thanks for the hints! So for aviation, the required options are:
speed: true,
speedLabel: 'knts',
xLabel: 'nm', //distanceLabel, will be ignored if imperial: true
distanceFactor: 0.539956803455724, //For km to nm. distanceFactor will be ignored if imperial: true
yLabel: 'ft',
altitude: true,
altitudeFactor: 3.281,
imperial: false,
And looks like the titled problem requires code fix and duplicated with https://github.com/Raruto/leaflet-elevation/issues/170, I shall mark this as closed as duplicate.
Hi Raruto,
First of all thanks for your project which is really useful ^^.
Subject of the issue
Incorrect time shown in y-axis
Your environment
Steps to reproduce
Use template https://raruto.github.io/leaflet-elevation/examples/leaflet-elevation_speed-chart.html with the following GeoJSON files: https://fgtracker.us.to/modules/fgtracker/interface.php?action=geojson&flightid=7675089 https://fgtracker.us.to/modules/fgtracker/interface.php?action=geojson&flightid=7675154
Expected behaviour
Time t on y-axis matches the actual time logged in GeoJSON file.
Actual behaviour
Further questions
Please allow me to ask some question here: 1) When
imperial: true,
the y-axis is in miles. Is it possible, like speed, to change miles to nautical miles? 2) label on x-axis (elevation) may become too large to feed in the graph.Any possible fix or workaround?
Thanks in advance, Hazuki