Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Gowtham

    (@sgowtham)

    Greetings.

    I was able to resolve both issues. All edits are in js/WP-GPX-Maps.js.

    ******************************

    For issue #1 (incorrect units in the hovertext/tooltip), the solution was replacing

    _formats.push( l_y );

    with

    _formats.push( l_x );

    in the if ( graphEle != '' ) { block – around line #1220.

    ******************************

    For issue #2 (number of decimal places in the graph’s tooltip/hovertext), the solution was replacing

    return Math.round( tooltipItems[0].xLabel, fpt.dec ) + fpt.suf;

    with

    return tooltipItems[0].xLabel + fpt.suf;

    in the tooltips: { section of the var hoptions = { block – around line #1130.

    ******************************

    Furthermore, I opted to add a single space between the metric and its unit. This was accomplished by making l_x and l_y look as follows (I just use uom = 1 and uom = 2) – around line #1040.

                        if ( '1' == unit ) {
    
                                /* feet / miles */
                                l_x = { suf: ' mi', dec: 1 };
                                l_y = { suf: ' ft', dec: 0 };
    
                        } else if ( '2' == unit ) {
    
                                /* meters / kilometers */
                                l_x = { suf: ' km', dec: 1 };
                                l_y = { suf: ' m', dec: 0 };

    ******************************

    A couple pages where the solution can be observed are

    https://sgowtham.com/journal/2023-grandmas-marathon/ (uom = 1)

    https://sgowtham.com/journal/2023-american-birkebeiner/ (uom = 2)

    I hope these help someone looking for similar solution.

    My best,

    Gowtham (G)

    • This reply was modified 1 year, 7 months ago by Gowtham.
    • This reply was modified 1 year, 7 months ago by Gowtham.
    • This reply was modified 1 year, 7 months ago by Gowtham.
    • This reply was modified 1 year, 7 months ago by Gowtham.
    Thread Starter Gowtham

    (@sgowtham)

    Scheduled import seems like it’s a paid only feature.

    I will look into other plugins that can do what I need. If nothing works out, I will write one of my own.

    Thank you for your help!

    Thread Starter Gowtham

    (@sgowtham)

    Thank you.

    I have been using 3.0.7 and not upgrading anymore.

    I use this plugin in close to 100 different posts/pages in my WordPress site – primarily as dashboard or status updates of various activities. I’ll look forward to your response.

    I fixed the error locally (version 1.5.05):

    1. Open wp-gpx-maps_admin_tracks.php
    2. Search for the string action=. There should be two instances (lines #32 and #58)
    3. Replace /wp-admin/options-general.php?page=WP-GPX-Maps with /FOLDER_NAME/wp-admin/options-general.php?page=WP-GPX-Maps
    4. FOLDER_NAME is where you have installed WordPress (e.g., wordpress)
    5. Save and close the file
    • This reply was modified 6 years, 8 months ago by Gowtham.

    @begger:
    I am looking into it. I believe I have followed the steps (for writing a WP) plugin but won’t rule out mistakes from my end. Will certainly fix it by v1.2.

    Apologies for inconvenience.

    -g

Viewing 5 replies - 1 through 5 (of 5 total)