Title: InnerHTML on Elevation Waypoints?
Last modified: April 17, 2023

---

# InnerHTML on Elevation Waypoints?

 *  [aiwetir](https://wordpress.org/support/users/aiwetir/)
 * (@aiwetir)
 * [3 years ago](https://wordpress.org/support/topic/innerhtml-on-elevation-waypoints/)
 * Is it possible to change the innerHTML on a waypoint when using elevation. For
   instance the “name” field of the waypoints in my GPX matches my image names.
   
   So I’d like to add something like `<img src="../uploads/_name_.jpg" style="width:
   90px"/>`If not simple, could you point me to where I can find that in the JS,
   I don’t mind editing that, but I’m unable to locate that in the php because of
   the structure of the plugin files.
    -  This topic was modified 3 years ago by [aiwetir](https://wordpress.org/support/users/aiwetir/).
      Reason: typo

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

 *  Plugin Author [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [3 years ago](https://wordpress.org/support/topic/innerhtml-on-elevation-waypoints/#post-16660487)
 * I have a very simple example to [show an image](https://leafext.de/extra/elevation-marker/)
   on a waypoint. Raruto, the author of the Leaflet Elevation plugin, has a [complex example](https://raruto.github.io/leaflet-elevation/examples/leaflet-elevation_gpx-waypoints.html).
   He uses css to style the image display. I know, it’s possible to work with variables
   in css, but I need to test.
    -  This reply was modified 3 years ago by [hupe13](https://wordpress.org/support/users/hupe13/).
 *  Thread Starter [aiwetir](https://wordpress.org/support/users/aiwetir/)
 * (@aiwetir)
 * [3 years ago](https://wordpress.org/support/topic/innerhtml-on-elevation-waypoints/#post-16660531)
 * Thanks!
 * I suppose this will work with some careful search and replace. The popup can 
   be styled with
 * `.elevation-popup .leaflet-popup-content {
   width: 300px !important;}
 * How do I turn off the “tooltip” of the marker onHover?
 *  Thread Starter [aiwetir](https://wordpress.org/support/users/aiwetir/)
 * (@aiwetir)
 * [3 years ago](https://wordpress.org/support/topic/innerhtml-on-elevation-waypoints/#post-16660593)
 * I only ask about turning off the tooltip because I’ve got over 100 posts with
   sgpx in them and haven’t been able to figure out how to turn them off without
   redoing all 100 posts.
 *  Thread Starter [aiwetir](https://wordpress.org/support/users/aiwetir/)
 * (@aiwetir)
 * [3 years ago](https://wordpress.org/support/topic/innerhtml-on-elevation-waypoints/#post-16660636)
 * `.elevation-tooltip {
   display: none;}
 * If anyone else searches for this here, I’d prefer a different way, but this works
    -  This reply was modified 3 years ago by [aiwetir](https://wordpress.org/support/users/aiwetir/).
 *  Plugin Author [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [3 years ago](https://wordpress.org/support/topic/innerhtml-on-elevation-waypoints/#post-16660679)
 * > I’d prefer a different way,
 * Can you share it?
 *  Thread Starter [aiwetir](https://wordpress.org/support/users/aiwetir/)
 * (@aiwetir)
 * [3 years ago](https://wordpress.org/support/topic/innerhtml-on-elevation-waypoints/#post-16660829)
 * Sorry, maybe that didn’t make sense. That CSS works to stop the tooltip. I posted
   it in case someone is looking for it here.
 * It works but I’d prefer to have an option in the settings or a shortcut that 
   works with sgpx (there may be one but I can’t figure it out)
 *  Plugin Author [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [3 years ago](https://wordpress.org/support/topic/innerhtml-on-elevation-waypoints/#post-16660903)
 * I guessed correctly that you have been using `sgpx` before. That’s why I asked,
   you won’t be the only one with this problem. There is an option to [migrate from sgpx](https://leafext.de/en/doku/sgpxelevation/)(
   you know). Maybe I can do something and the shortcode `elevation` will also profit
   from it.
 *  Thread Starter [aiwetir](https://wordpress.org/support/users/aiwetir/)
 * (@aiwetir)
 * [3 years ago](https://wordpress.org/support/topic/innerhtml-on-elevation-waypoints/#post-16663432)
 * To use sgpx, I have to edit the plugin css, the theme’s additional css, and search
   and replace a couple things in the gpx files
   To migrate, I have to edit the plugin
   css, the theme’s additional css, search and replace twice as much in the gpx 
   files, edit all my shortcodes, and add shortcodes.
 * I imagine like most things, the cost of not upgrading will eventually become 
   more costly than fixing it now, but I don’t yet have all the functionality I’m
   looking for from this plugin so I’m still undecided. But wp-gpx doesn’t work 
   at all for me anymore either
 *  Plugin Author [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [3 years ago](https://wordpress.org/support/topic/innerhtml-on-elevation-waypoints/#post-16665535)
 * I have looked at the [sgpx elevation comparison](https://leafext.de/en/doku/sgpxelevation/)
   again. You can change the chart and track colors. You can configure the display
   of informations about the track. css you need only for the fonts, if this should
   be possible.
   heart rate, cadence, temperature are not (yet) available for elevation.
   I plan to rework the shortcode layerswitch. There I will provide an option that
   allows to show defined tiles on each map.
 * I’m unable to provide the NextGen Gallery functions.
 * Which function are you missing?
 *  Thread Starter [aiwetir](https://wordpress.org/support/users/aiwetir/)
 * (@aiwetir)
 * [3 years ago](https://wordpress.org/support/topic/innerhtml-on-elevation-waypoints/#post-16666199)
 * I’m getting close to all the functionality I had and you have a similar one as
   an example. In wp-gpx, I had dynamically generated links (php) in my popups that
   linked you to the lat/lon in a Google map. It had to grab the lat lon in the 
   php functions and I coded it myself. 
   Your example is using individual waypoints
   but I may be able to adapt it to elevation waypoints, maybe not.It’s not something
   I need nor anything I expect from these plugins, but if I can figure it out it
   would be nice
    -  This reply was modified 3 years ago by [aiwetir](https://wordpress.org/support/users/aiwetir/).

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

The topic ‘InnerHTML on Elevation Waypoints?’ is closed to new replies.

 * ![](https://ps.w.org/extensions-leaflet-map/assets/icon-256x256.png?rev=3067862)
 * [Extensions for Leaflet Map](https://wordpress.org/plugins/extensions-leaflet-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/extensions-leaflet-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/extensions-leaflet-map/)
 * [Active Topics](https://wordpress.org/support/plugin/extensions-leaflet-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/extensions-leaflet-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/extensions-leaflet-map/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [aiwetir](https://wordpress.org/support/users/aiwetir/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/innerhtml-on-elevation-waypoints/#post-16666199)
 * Status: not resolved