• Resolved C

    (@rektek)


    Wondering if someone could confirm whether or not you can change the green theme color of the elevation profiles. I’ve changed the attribute of the polyline and I get this solid green where the map was. Any other color settings in the code don’t seem to work. The only thing that sort of works so far is to change the polyline weight to 0, but that also gets rid of the start and end points of the route. But it doesn’t overlay my route color in that case. Not a great solution. I would like the elevation profile AND route line to be different colors. Possible? This is how I’ve got the shortcode now. And screenshots below for reference…

    [leaflet-map height=500 fitbounds tileurl=”https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}” subdomains=”abcd” attrib=”Tiles ? Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community” color=”#3f3ac9″]

    [elevation gpx=”MY PATH” summary=”inline” slope=0 speed=0 acceleration=0 time=0 downloadLink=0 polyline=”{ weight: 3, color: ‘#3f3ac9’}” !legend]

    [leaflet-gpx src=”MY PATH”]

    [zoomhomemap]
    [layerswitch]
    [fullscreen]

    Thanks again for any input!

    • This topic was modified 1 year, 1 month ago by C.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can you change default green colors of elevation profile?’ is closed to new replies.