Skip to content

Commit 1722534

Browse files
fix labels showing for landed vehicles
1 parent c70a5ca commit 1722534

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

js/tracker.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,9 @@ function updateVehicleInfo(vcallsign, newPosition) {
787787
vehicle.marker.setMode("landed");
788788
vehicle.marker.shadow.setVisible(false);
789789
vehicle.horizon_circle.setVisible(false);
790+
vehicle.horizon_circle.label.setVisible(false);
790791
vehicle.subhorizon_circle.setVisible(false);
792+
vehicle.subhorizon_circle.label.setVisible(false);
791793

792794
} else if(vehicle.ascent_rate > -3.0 ||
793795
vcallsign == "wb8elk2") {
@@ -1488,7 +1490,11 @@ function addPosition(position) {
14881490
horizon_circle.bindTo('center', marker_shadow, 'position');
14891491

14901492
// label
1491-
horizon_circle.label = new google.maps.Label({ map: map, strokeColor: horizon_circle.get('strokeColor') });
1493+
horizon_circle.label = new google.maps.Label({
1494+
map: map,
1495+
strokeColor: horizon_circle.get('strokeColor'),
1496+
visible: false
1497+
});
14921498
gmaps_elements.push(horizon_circle.label);
14931499
horizon_circle.label.bindTo('opacity', horizon_circle, 'strokeOpacity');
14941500
horizon_circle.label.bindTo('zIndex', horizon_circle, 'zIndex');
@@ -1533,7 +1539,11 @@ function addPosition(position) {
15331539
subhorizon_circle.bindTo('center', marker_shadow, 'position');
15341540
gmaps_elements.push(subhorizon_circle);
15351541

1536-
subhorizon_circle.label = new google.maps.Label({ map: map, strokeColor: subhorizon_circle.get('strokeColor') });
1542+
subhorizon_circle.label = new google.maps.Label({
1543+
map: map,
1544+
strokeColor: subhorizon_circle.get('strokeColor'),
1545+
visible: false
1546+
});
15371547
gmaps_elements.push(subhorizon_circle.label);
15381548
subhorizon_circle.label.bindTo('opacity', subhorizon_circle, 'strokeOpacity');
15391549
subhorizon_circle.label.bindTo('zIndex', subhorizon_circle, 'zIndex');

0 commit comments

Comments
 (0)