Support » Plugin: WP-Strava » Map Embed from segment shows default map

  • Resolved aetherscythe

    (@aetherscythe)


    Chrome developer tools show that the GoogleMaps API isn’t being told any geographic location to load. This to me would point to some problem with the query to Strava to get the segment geographic location / LAT-LONG, but I can’t spot the source of the error.

    I went back to the WP-Strava settings and re-entered my Strava Client ID and Client Secret, but it was no help. I even put the same information again in the additional athlete fields for same and I got the happy message that a new Strava Token was successfully retrieved.

    • This topic was modified 1 year, 2 months ago by aetherscythe.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author jrfoell

    (@jrfoell)

    @aetherscythe if you can leave that debug page up it will be helpful. I’m working on this plugin tomorrow (Friday) and will take a look.

    Thread Starter aetherscythe

    (@aetherscythe)

    @jrfoell Sure thing. And if you can tell me how to get you some meaningful logs I am happy to provide. I turned on WPSTRAVA_DEBUG but didn’t find any logs, I guess because nothing generated an exception.
    If you need any other kind of access let me know.
    Thanks!

    Plugin Author jrfoell

    (@jrfoell)

    @aetherscythe turns out the polyline (track) on that particular segment was really long. Normally the map falls back to use a “summary polyline” that is smaller, but it’s not provided for segments. I added a function to reduce the number of points so it’s not so long. Please check out 2.10.0 and let me know if you have any issues!

    Thread Starter aetherscythe

    (@aetherscythe)

    @jrfoell Excellent work! That fixed it. =D
    A “nice to have” would be to include the name of the segment, but I can always add the text above the block, by-hand.
    Thanks again!

    Plugin Author jrfoell

    (@jrfoell)

    @aetherscythe – great suggestion! I added it to our road map and will likely code it into the next release. If have time today, please leave a review: https://wordpress.org/support/plugin/wp-strava/reviews/#new-post

    • This reply was modified 1 year, 2 months ago by jrfoell.
    Thread Starter aetherscythe

    (@aetherscythe)

    Perfect!
    Cheers!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Map Embed from segment shows default map’ is closed to new replies.