Title: Console Error
Last modified: April 15, 2021

---

# Console Error

 *  Resolved [jaykaywp](https://wordpress.org/support/users/jaykaywp/)
 * (@jaykaywp)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/console-error-50/)
 * 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](https://wordpress.org/support/users/jaykaywp/).

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

 *  Plugin Author [skirridsystems](https://wordpress.org/support/users/skirridsystems/)
 * (@skirridsystems)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/console-error-50/#post-14321698)
 * Thanks for spotting this one. The fix will appear in the next release.
 *  Plugin Author [skirridsystems](https://wordpress.org/support/users/skirridsystems/)
 * (@skirridsystems)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/console-error-50/#post-14321721)
 * 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](https://wordpress.org/support/users/jaykaywp/)
 * (@jaykaywp)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/console-error-50/#post-14322014)
 * Great, thanks for the quick response.
 *  Thread Starter [jaykaywp](https://wordpress.org/support/users/jaykaywp/)
 * (@jaykaywp)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/console-error-50/#post-14323264)
 * 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](https://wordpress.org/support/users/jaykaywp/).
    -  This reply was modified 5 years, 1 month ago by [jaykaywp](https://wordpress.org/support/users/jaykaywp/).
 *  Plugin Author [skirridsystems](https://wordpress.org/support/users/skirridsystems/)
 * (@skirridsystems)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/console-error-50/#post-14356255)
 * 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](https://wordpress.org/support/users/jaykaywp/)
 * (@jaykaywp)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/console-error-50/#post-14357683)
 * 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](https://wordpress.org/support/users/skirridsystems/)
 * (@skirridsystems)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/console-error-50/#post-14384810)
 * Now using an SVG icon in 1.1.1
 *  Thread Starter [jaykaywp](https://wordpress.org/support/users/jaykaywp/)
 * (@jaykaywp)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/console-error-50/#post-14385337)
 * That’s great, thanks!

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

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

 * ![](https://ps.w.org/os-datahub-maps/assets/icon-256x256.jpg?rev=2376803)
 * [OS DataHub Maps](https://wordpress.org/plugins/os-datahub-maps/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/os-datahub-maps/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/os-datahub-maps/)
 * [Active Topics](https://wordpress.org/support/plugin/os-datahub-maps/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/os-datahub-maps/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/os-datahub-maps/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [jaykaywp](https://wordpress.org/support/users/jaykaywp/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/console-error-50/#post-14385337)
 * Status: resolved