• 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 1 year, 3 months ago by aiwetir. Reason: typo
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author hupe13

    (@hupe13)

    I have a very simple example to show an image on a waypoint. Raruto, the author of the Leaflet Elevation plugin, has a complex example. 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 1 year, 3 months ago by hupe13.
    Thread Starter aiwetir

    (@aiwetir)

    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

    (@aiwetir)

    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

    (@aiwetir)

    .elevation-tooltip {
    display: none;
    }

    If anyone else searches for this here, I’d prefer a different way, but this works

    • This reply was modified 1 year, 3 months ago by aiwetir.
    Plugin Author hupe13

    (@hupe13)

    I’d prefer a different way,

    Can you share it?

    Thread Starter aiwetir

    (@aiwetir)

    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

    (@hupe13)

    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 (you know). Maybe I can do something and the shortcode elevation will also profit from it.

    Thread Starter aiwetir

    (@aiwetir)

    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

    (@hupe13)

    I have looked at the sgpx elevation comparison 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

    (@aiwetir)

    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 1 year, 3 months ago by aiwetir.
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘InnerHTML on Elevation Waypoints?’ is closed to new replies.