amaclean2 / SundayPeak

The repo for Sunday Peak
https://sundaypeak.com
2 stars 0 forks source link

Creating a trail sometimes doesn't create elevations for all of the points #191

Open amaclean2 opened 7 months ago

amaclean2 commented 7 months ago

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.