Add grade direction switching to map settings

This commit is contained in:
Pyro Nicampt committed 2025-01-03 22:26:47 -06:00
1 parent c5b1c81e3d
commit 4c794855d6
3 files changed
+23 -2

No files matched your search

+1
View File
@@ -621,6 +621,7 @@ function drawMarkers(){
markerImg.classList.add('fixedScale', 'sign');
// Grade signs
if(markerData.type == 'grade'){
markerImg.classList.add('gradeArrow');
markerImg.setAttribute('href', '#gradeArrow');
markerImg.setAttribute('fill', Config.gradeColors['grade_'+markerData.gradeClass]);
const tanLen = Math.sqrt(markerData.tangent.x*markerData.tangent.x + markerData.tangent.z*markerData.tangent.z) * Math.sign(markerData.tangent.y);