• Resolved bryncraggs

    (@bryncraggs)


    I’m not a wp expert, just a reasonably competent amateur, and I’m trying to create a web page for my walking group using WP
    I have installed the OS dataHub plug in onto a fairly clean WP install – the only other installed plug in is JetPack
    I can pass the gpx data from a route I recorded myself and the appropriate part of the OS map shows correctly in my post – and I like what I see – so thanks for that
    The shortcode I have used is: [osmap gpx=”https://benthamfootpathgroup.org/wp-content/uploads/2021/09/BFG-Delph-Quarry-Aug-21.gpx” color=”red” track=”4″]
    This points to the media library in the WP install on my local machine – the site is not publicly accessible yet.
    All well and good so far then – the issue I have is that although the right map shows, the route I walked does not – so the track colour and width settings seem not to be being picked up.
    The defaults on the Map Defaults setting page are present – again red (picked from the tile under the colour map) and 4px.
    I have looked at the gpx data in VScode and it appears good
    I have tried other routes with similar results, so I don’t think its a recording issue

    Any suggestions gratefully received

    Regards,

    Bryn

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author skirridsystems

    (@skirridsystems)

    Hi Bryn,
    Your shortcode looks OK so there’s not much else I can tell you without being able to see the site or the GPX file. Do you see any errors in the Javascript console?
    Simon

    Thread Starter bryncraggs

    (@bryncraggs)

    Thanks for the near instant response Simon, genuinely appreciated.

    Since yesterday I tried the site in Edge and Safari with the same result: Right map shown, and I can see the footpaths I walked, but the track is not drawn
    So, as you suggested, I had a look at the console in Chrome, and it does suggest there is something amiss in Java – although this is all somewhat beyond my skill level at the moment.
    I attach a partial screenshot of the message:
    https://www.dropbox.com/s/oo69nkj1rwsp21q/BFG%20console.PNG?dl=0
    Also attached is my GPX – perhaps you could just verify that the route works on your system:
    https://www.dropbox.com/s/desaoj103eiv4f8/BFG%20Delph%20Quarry%20Aug%2021.gpx?dl=0
    I had another look at the gpx data and noticed that on line 11 it has this tag . .
    <os:visibility>PRIVATE</os:visibility>
    is this a contributor?

    Many thanks,

    Bryn

    Plugin Author skirridsystems

    (@skirridsystems)

    I’ve tried it here and it works for me on Chrome, showing the track and the start/end markers.

    Very strange: the Javascript must be reading the GPX file OK in order to get the centre/extents to show, so I’m not sure why it’s not displaying the track.

    Sorry, there’s not a lot else I can do until this goes on a publicly accessible site.

    Simon

    Thread Starter bryncraggs

    (@bryncraggs)

    Thanks Simon,

    the input is appreciated, and I absolutely understand that until the site is publicly accessible, there’s not much more you can do.

    So what I’ll do is carry on with the development until I am happy to go public, and then drop you another line – I’m quite sure this is not a big issue

    If I stumble across what I have done wrong before then, I’ll let you know so that the knowledge base grows.

    I’ll mark the issue as resolved

    Regards,

    Bryn

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘OS map loads from .gpx – but no track’ is closed to new replies.