summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarina Billes <marina.billes@runbox.com>2021-12-01 21:44:17 +0000
committerMarcus Lundblad <ml@update.uu.se>2021-12-01 21:44:17 +0000
commit4fc31bbc43f7d0d8e4aa48845bd59b816ea9a111 (patch)
treebcaa3cc6ea8818b36e2e76ee0cb5cca70b2a23c9
parent05ebb7219f470ca4d568ff91443902018bc7eec1 (diff)
downloadgnome-maps-4fc31bbc43f7d0d8e4aa48845bd59b816ea9a111.tar.gz
route: Fix u-turn display
Fixed an issue where the function _isLefthandTraffic() wasn't called correctly, leading to all routes with a u-turn to fail Also removed duplicate entry 'GB' from LHT_COUNTRIES
-rw-r--r--src/route.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/route.js b/src/route.js
index 89dd9198..0ef127fc 100644
--- a/src/route.js
+++ b/src/route.js
@@ -49,14 +49,14 @@ var TurnPointType = {
* source: https://en.wikipedia.org/wiki/Left-_and_right-hand_traffic
*/
const LHT_COUNTRIES = new Set(['AG', 'AI', 'AU', 'BB', 'BD', 'BM', 'BN', 'BS',
- 'BT', 'BW', 'CY', 'DM', 'FJ', 'FK', 'GB', 'GB',
- 'GD', 'GY', 'HK', 'ID', 'IE', 'IM', 'IN', 'JE',
- 'JM', 'JP', 'KE', 'KI', 'KN', 'KY', 'LC', 'LK',
- 'LS', 'MO', 'MS', 'MT', 'MU', 'MV', 'MW', 'MY',
- 'MZ', 'NA', 'NP', 'NR', 'NZ', 'PG', 'PN', 'PK',
- 'SB', 'SC', 'SG', 'SH', 'SR', 'SZ', 'TC', 'TH',
- 'TL', 'TO', 'TT', 'TV', 'TZ', 'UG', 'VC', 'VG',
- 'VI', 'WS', 'ZA', 'ZM', 'ZW']);
+ 'BT', 'BW', 'CY', 'DM', 'FJ', 'FK', 'GB', 'GD',
+ 'GY', 'HK', 'ID', 'IE', 'IM', 'IN', 'JE', 'JM',
+ 'JP', 'KE', 'KI', 'KN', 'KY', 'LC', 'LK', 'LS',
+ 'MO', 'MS', 'MT', 'MU', 'MV', 'MW', 'MY', 'MZ',
+ 'NA', 'NP', 'NR', 'NZ', 'PG', 'PN', 'PK', 'SB',
+ 'SC', 'SG', 'SH', 'SR', 'SZ', 'TC', 'TH', 'TL',
+ 'TO', 'TT', 'TV', 'TZ', 'UG', 'VC', 'VG', 'VI',
+ 'WS', 'ZA', 'ZM', 'ZW']);
var Route = GObject.registerClass({
Signals: {
@@ -137,7 +137,7 @@ var TurnPoint = class TurnPoint {
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: return this._isLeftHandTraffic() ?
+ case TurnPointType.UTURN: return this._isLefthandTraffic() ?
'maps-direction-u-turn-right-symbolic':
'maps-direction-u-turn-left-symbolic';
case TurnPointType.UTURN_LEFT: return 'maps-direction-u-turn-left-symbolic';