Closed fschn90 closed 1 year ago
is there some kind of size limit for the gpx files? not sure but, but it seems to be correlating with larger gpx files 10k track points plus.
Update: it not file size, but its about track segments. this issue lead me on #176. tracks (incl large tracks) with just one segment, display fine. Tracks with multiple segments display funnily.
Hi @flo-schn, thanks for your report.
Also regarding https://github.com/Raruto/leaflet-elevation/issues/238, please provide a link to a fully working example that shows your issue (eg. on jsfiddle.net any other site you prefer).
Honestly, I'm running out of time to test and compile others code locally..
👋 Raruto
fair enough. I used github to deploy a fully working example:
the example illustrates both issues, this one and #238 regarding #237, sometimes it works perfectly and all is properly color filled, then a refresh of the page usually helps to display buggy not properly color filled.
here's a screenshot, just in case:
hope that helps, flo
I can confirm it with this track in my environment.
Have you tried applying this suggestion? https://github.com/Raruto/leaflet-elevation/issues/176#issuecomment-1032763314
See also: https://github.com/Raruto/leaflet-elevation/issues/56#issuecomment-1051028310
just applied https://github.com/Raruto/leaflet-elevation/issues/176#issuecomment-1032763314 and updated my working example:
and yes, it solves this issue, thus displaying the elevation graph properly color filled.
but unfortunately, it does not solve https://github.com/Raruto/leaflet-elevation/issues/238 reducing the height of the elevation graph when multiple maps and elevation-divs are displayed on one page. see screenshot:
best, flo
Try to set height of the chart to an absolute value: https://github.com/Raruto/leaflet-elevation/blob/868179234d8e9b8f7beaea57d0e34d8bd79a2622/src/options.js#L73
if u check the again updated result: https://flo-schn.github.io/reproducing-issue-for-leaflet-elevation/
or see the screenshot:
i guess it somehow works by resizing the graph to a size that is readable again. however, there is still this rather large unused empty space at the bottom of the elevation-div container. and the summary statistics usually just below the elevation-div container have disappeared.
Another solution for me was to hide the specific mask-element, like:
.elevation-control .area mask {
display: none;
}
elevation graph buggy not properly color filled sometimes
please see screenshot:
Your environment
Steps to reproduce
Expected behaviour
a fully filled with color elevation graph, like this:
Actual behaviour
see attached screenshot. looks buggy, and is a not fully filled with color elevation graph. happens about 1/3 in page loads