feat: new MapboxMapper cases

This commit is contained in:
Piotr Dec 2024-08-01 19:34:48 +02:00
parent 0e22c02da3
commit 6d71245d9f
Signed by: stawros
GPG key ID: F89F27AD8F881A91

View file

@ -20,6 +20,11 @@ class MapboxMapper {
"arrive" -> {
state.flag = true
}
"turn" -> {
when (this.type) {
"straight" -> state.direction.angle = OutAngle.Straight
}
}
}
when (this.modifier) {
"right" -> {
@ -31,6 +36,10 @@ class MapboxMapper {
180.0 -> state.direction.angle = OutAngle.Straight
}
}
"off ramp" -> {
state.direction.angle = OutAngle.EasyRight
state.direction.out = OutType.LongerLane
}
}
}