{ Dev Farm }

Web & Windows Development

The unit in tooltip stays in meters

Home Forum Wp Gpx Maps Support The unit in tooltip stays in meters

  • Questo topic ha 3 risposte, 1 partecipante ed è stato aggiornato l'ultima volta 4 anni, 6 mesi fa da equinox.
Stai visualizzando 4 post - dal 1 a 4 (di 4 totali)
  • Autore
    Post
  • #78377 Rispondi
    Chris
    Ospite

    Hey,

    in my under development website in this page (for example)
    https://grc.elegrad.com/tours/delphi-and-mt-parnassus/

    In shortcode I have uom=2 and the distance in graph changes correctly.
    But in the tooltip it show the number correctly but instead of km says m

    #82304 Rispondi
    Bebass
    Ospite

    I have the same problem here: Error units in tool tip

    Best regards,
    B.

    #83447 Rispondi
    Franz
    Ospite

    This is also happening to me… The distance number in the tooltip stays at roughly 1 ft per mile…

    #89147 Rispondi
    equinox
    Ospite

    I just replaced string
    return Math.round(tooltipItems[0].xLabel, fpt.dec) + fpt.suf;;
    with customized:
    return Math.round(tooltipItems[0].xLabel, fpt.dec) + ' km';;
    (yes, I added space before ‘km’ just for better look)

    https://i.imgur.com/gIN8B3Z.png

Stai visualizzando 4 post - dal 1 a 4 (di 4 totali)
Rispondi a: Risposta #83447 in The unit in tooltip stays in meters

You can use BBCodes to format your content.
Your account can't use Advanced BBCodes, they will be stripped before saving.

Le tue informazioni:




Non è possibile lasciare nuovi commenti.