How to show Elevation in decimal?
mdfaisalpapa opened this issue · 3 comments
mdfaisalpapa commented
The elevation is shown in whole numbers for example 0.67 is shown as 1m . How to show the same with the actual value instead of rounding off?
Raruto commented
Hi @mdfaisalpapa,
- the simple way:
leaflet-elevation/src/options.js
Lines 79 to 80 in bd9316b
-
the nerd way: #216 (comment)
-
for everything else, write a your own custom handler:
leaflet-elevation/examples/leaflet-elevation_extended-ui.html
Lines 255 to 271 in bd9316b
👋 Raruto
hupe13 commented
My solution as an example: https://github.com/hupe13/extensions-leaflet-map-github/blob/bdf6aa9f0c529328baa2bc8423a7c85984718e5c/js/elevation.js#L20-L97
Maybe this helps.
mdfaisalpapa commented
Thank you.