[gnome-maps/wip/mlundblad/additional-routing-icons: 2/2] route: Use direction icons for additional types
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/additional-routing-icons: 2/2] route: Use direction icons for additional types
- Date: Fri, 14 Aug 2020 06:12:15 +0000 (UTC)
commit 6420b92aabf87ca35c20748a00189be5aa469fbc
Author: Marcus Lundblad <ml update uu se>
Date: Thu Aug 13 23:11:37 2020 +0200
route: Use direction icons for additional types
Use the additional icons for instruction types
found in OpenTripPlanner.
src/route.js | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/route.js b/src/route.js
index 458ed2b3..1c30dfa4 100644
--- a/src/route.js
+++ b/src/route.js
@@ -135,6 +135,9 @@ var TurnPoint = class TurnPoint {
case TurnPointType.VIA: return 'maps-point-end-symbolic';
case TurnPointType.END: return 'maps-point-end-symbolic';
case TurnPointType.ROUNDABOUT: return this._getRoundaboutIconName(turnAngle);
+ case TurnPointType.ELEVATOR: return 'maps-direction-elevator-symbolic';
+ case TurnPointType.UTURN_LEFT: return 'maps-direction-u-turn-left-symbolic';
+ case TurnPointType.UTURN_RIGHT: return 'maps-direction-u-turn-right-symbolic';
default: return '';
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]