Skip to content

Commit 8c4a8f5

Browse files
committed
Select row on balloon click
1 parent 38e4421 commit 8c4a8f5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

js/tracker.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1656,6 +1656,12 @@ function addPosition(position) {
16561656
},
16571657
title: vcallsign,
16581658
});
1659+
1660+
google.maps.event.addDomListener(marker, 'click', function() {
1661+
$(".row.active").removeClass('active');
1662+
$(".vehicle"+vehicles[marker.title].uuid).addClass('active');
1663+
});
1664+
16591665
gmaps_elements.push(marker);
16601666
marker.shadow = marker_shadow;
16611667
marker.balloonColor = (vcallsign == "PIE") ? "rpi" : balloon_colors_name[color_index];

0 commit comments

Comments
 (0)