• Resolved mapmaker1

    (@mapmaker1)


    Hi, I really like the plugin but am having some issues. In my admin area the shortcode help is formatted incorrectly. I found the help at https://leafext.de/extra/helper/ instead.

    1. It is not clear to me how to change the style of individual tracks in the multi elevation environment. I can find no mention of this at https://leafext.de/en/multielevation/dokumentation/ or in examples using this plugin.
    2. It appears I need to create a custom theme: In your elevation.css put the styles like the theme styles in https://unpkg.com/@raruto/[email protected]/dist/leaflet-elevation.css or check out Raruto's examples. But how does one assign a specific styling to a specific track?
    3. Example: In a perfect world this would work:
    [leaflet-map width=100% height=60vh fitbounds]
    [elevation-track file="address-of-track-1.gpx" color="black"]
    [elevation-track file="address-of-track-2.gpx" color="dashed red"]
    [multielevation]

    If I have many tracks maybe it makes more sense to include leaflet directly and not use the leaflet map and leaflet map extension plugins. I am new to leaflet and javascript+wordpress so I apologise if these are obvious questions. Many thanks.

    • This topic was modified 3 years, 4 months ago by mapmaker1.
    • This topic was modified 3 years, 4 months ago by mapmaker1.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author hupe13

    (@hupe13)

    In my admin area the shortcode help is formatted incorrectly.

    This should not be so and can have many causes. The server cache (not one from a caching plugin), an incomplete installation of WordPress or the plugin, some settings in the server configuration. Or two plugins are not compatible. I don’t know. You are the first with this problem. Open the developer console of your browser (Strg+Shift+I on Firefox). Are there any errors?

    It appears I need to create a custom theme:

    There are 7 default themes to display an elevation profile of one track. You can change the colors in the backend /wp-admin/admin.php?page=extensions-leaflet-map&tab=elevationtheme or you can configure your own styles. The latter, however, is not for beginners. And I think, you don’t need it.

    multielevation uses these colors for the charts only.

    For multielevation you can change the color of the highligted track: /wp-admin/admin.php?page=extensions-leaflet-map&tab=multielevation

    You can’t influence the color of a track in multielevation, this is a fixed function.

    You can set the color of the track with leaflet-gpx, but there is not an elevation profile.

    • This reply was modified 3 years, 4 months ago by hupe13.
    • This reply was modified 3 years, 4 months ago by hupe13.
    Thread Starter mapmaker1

    (@mapmaker1)

    Many thanks for the reply. There are errors on the shortcode helper page about not loading pngs from the opentopology map – “Failed to load resource:…”. I think this is for the first example at the top of the page. I’m not concerned about this problem, I just thought I should let you know.

    “You can’t influence the color of a track in multielevation, this is a fixed function.” If one was to go in search of changing these fixed settings, is there a natural place one should start?

    Plugin Author hupe13

    (@hupe13)

    If one was to go in search of changing these fixed settings, is there a natural place one should start?

    Happy coding. 😉

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

The topic ‘Track styling and short code issues’ is closed to new replies.