• Resolved pibinko2

    (@pibinko2)


    Hello, again. I have looked in the documentation for an option to set the color of a GPX track, but I have not found it.

    Could anybody please confirm if it is possible to set the color of a GPX track?

    Many thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author hupe13

    (@hupe13)

    Do you use leaflet-gpx or elevation?

    [leaflet-gpx src=... color=...]My GPX file[/leaflet-gpx]

    elevation has many posibilies for colors, see the admin backend: https://your-domain.tld/wp-admin/admin.php?page=extensions-leaflet-map&tab=elevationtheme

    Thread Starter pibinko2

    (@pibinko2)

    Hello and thanks for writing.

    I have tried both…with leaflet-gpx it is actually OK, but I have the limitation that I have to read the src file from the same domain as the wordpress site (while I was considering using github to handle the source files separately)

    with elevation, yes, I have checked the backend admin link..this will allow to change the color as a general setting, but my case is that I have a set of GPX tracks, and I would like to separate them in different groups (e.g. group1 = hike trails, group 2= bike trails… and color them accordingly), so i need the color parameter “per layer”.

    Thanks!

    Andrea

    Plugin Author hupe13

    (@hupe13)

    I have to read the src file from the same domain as the wordpress site (while I was considering using github to handle the source files separately)

    If you want to load with the gpx from another domain and this does not work, it may be a CORS problem. See the developer console and ask your favorite search machine about “CORS” and “.htaccess”.

    so i need the color parameter “per layer”.

    This is possible, see my examples. You have 7 different themes and you can create an own one.

    Plugin Author hupe13

    (@hupe13)

    Did you solve the problem?

    Thread Starter pibinko2

    (@pibinko2)

    Hello – the color issue is solved, thank you!

    Concerning the CORS bit, I still have to investigate, or I might see if I can bypass it by keeping files on the same domain.

    Plugin Author hupe13

    (@hupe13)

    So I set the threat to resolved.

    Thread Starter pibinko2

    (@pibinko2)

    ok – I did that…thanks for reminding me about checking the status.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.