• Resolved charfield1976

    (@charfield1976)


    Apologies in advance- seems I replied to my own thread by accident!

    Here is my issue:

    I put in my gpx URL and this displays my walking route on the map. However, I’m trying to put a marker in for the start point. I read in the instructions that this is possible:

    “Note that you can display a GPX file and markers on the same map. The auto-zoom will work on the GPX file and not the markers. If your markers are just showing waypoints on the route then this will not be a problem, but if they lie outside the route then you may not see them all.”

    So I made an attempt by putting the following with my existing shortcode:
    [osmap gpx=”https://charlottesramblings.com/wp-content/uploads/2021/06/Mepal-and-the-Hundred-Foot-Drain.gpx”][osmap markers=”TL4404981313;Start”]
    Then:
    [osmap gpx=”https://charlottesramblings.com/wp-content/uploads/2021/06/Mepal-and-the-Hundred-Foot-Drain.gpx”osmap markers=”TL4404981313;Start”]

    One showed 2 maps- my map with route and no marker; and one below- zoomed in map with marker but no route.
    Second attempt showed only the latter map.

    All I want is to put a marker on my existing gpx map. What am I doing wrong here? I’ll bet it’s a simple fix, but I’m stumped.

    By the way, thank you so very much for your help.`

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter charfield1976

    (@charfield1976)

    I’ve solved the problem myself! I went back into OS Map settings on my WordPress dashboard and changed ‘Map Zoom’ from ‘1:25,000 zoom’ to ‘1:25,000’.

    Perhaps this will help someone else, in any case.

    Plugin Author skirridsystems

    (@skirridsystems)

    Glad you got it working. Each shortcode (enclosed in square brackets with osmap at the start) creates a separate map, which is why you got two on your first attempt.

    I think the second one didn’t work because it had an extra ‘osmap’ in there, stuck on the end of the gpx filename. It should be:
    [osmap gpx=”https://charlottesramblings.com/wp-content/uploads/2021/06/Mepal-and-the-Hundred-Foot-Drain.gpx” markers=”TL4404981313;Start”]

    You can add multiple shortcode attributes but only one shortcode name at the start.

    Thread Starter charfield1976

    (@charfield1976)

    Thanks. All going well so far. Added multiple different coloured markers to my maps, but oh boy! You have got to be super careful with typing- one little space missing between “….gpx” and ‘marker’ and all I got was a big grey rectangle! Sorted it straight away, so I am very happy. I feel like I’ve started learning a new language- now I know how my students felt when I was teaching them French!

    Thank you for your help- adding these maps has made my day!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding markers, GPX file’ is closed to new replies.