• Resolved jaykaywp

    (@jaykaywp)


    Hello, thanks for this great plugin. I’ve noticed it throws up a Console error – you can see it on your plugin home page – TypeError: null is not an object (evaluating ‘document.getElementById…(Safari) / Uncaught TypeError: Cannot read property ‘style’ of null…(Chrome)

    It only seems to come up for me if a gpx file is used. Any thoughts on whether this can be fixed?

    EDIT: Looks like the error goes away if there is an elevation profile. PS is there any way of changing the marker that shows on the map when you hover over the profile? It’s a bit low-res and wondering if it could be an svg?

    Thanks again

    • This topic was modified 5 years, 1 month ago by jaykaywp.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author skirridsystems

    (@skirridsystems)

    Thanks for spotting this one. The fix will appear in the next release.

    Plugin Author skirridsystems

    (@skirridsystems)

    The marker on the map is part of the leaflet-elevation plugin which is a separate project. It’s a 32×32 PNG, which I could replace with a different PNG but SVG is not so straightforward.

    Thread Starter jaykaywp

    (@jaykaywp)

    Great, thanks for the quick response.

    Thread Starter jaykaywp

    (@jaykaywp)

    Just following up on the marker – I appreciate this may not be for everyone but in case it helps – you can actually just change it with custom css and upload your custom svg icon to your media directory or wherever you want to host it and change the url in the css accordingly…

    .elevation-position-icon:before {
      background: url(where-the-svg-is-uploaded/my-custom-svg-icon.svg) no-repeat center center / contain}

    Hope that helps.

    Thanks

    • This reply was modified 5 years, 1 month ago by jaykaywp.
    • This reply was modified 5 years, 1 month ago by jaykaywp.
    Plugin Author skirridsystems

    (@skirridsystems)

    Do you have a better marker icon than the one we currently use? I’m doing some updates and could include that in the changes.

    Thread Starter jaykaywp

    (@jaykaywp)

    I went for something a bit custom in the end using a walker icon so probably not for everyone! Thanks for looking into making the changes

    Plugin Author skirridsystems

    (@skirridsystems)

    Now using an SVG icon in 1.1.1

    Thread Starter jaykaywp

    (@jaykaywp)

    That’s great, thanks!

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

The topic ‘Console Error’ is closed to new replies.