I figured this out. What happened is: Mapbox uses the tiles rendered to calculate the elevation properties, if the zoom is too tight or not encompassing some of the trail, the elevation calculations will either get thrown off or not go through. To fix this, I forced the map to zoom out before calculating the elevations and this seems to work better.
I figured this out. What happened is: Mapbox uses the tiles rendered to calculate the elevation properties, if the zoom is too tight or not encompassing some of the trail, the elevation calculations will either get thrown off or not go through. To fix this, I forced the map to zoom out before calculating the elevations and this seems to work better.