1
0
Fork 0

Phi: Highlight "follow aircraft" button if enabled

This commit is contained in:
Lars Toenning 2022-07-31 16:35:15 +02:00 committed by James Turner
parent 5626dc51f5
commit fc3b7b8b56
2 changed files with 7 additions and 1 deletions

View file

@ -69,4 +69,10 @@
width: 40px;
height: 40px;
}
.mapOptionEnabled {
outline: 3px solid green;
border-radius: 5px;
}
</style>

View file

@ -150,7 +150,7 @@ define(
followAircraftControl.onAdd = function(map) {
this._div = L.DomUtil.create('div', 'followAircraft');
this._div.innerHTML = '<img src="images/followAircraft.svg" title="Center Map on Aircraft Position" data-bind="click: toggleFollowAircraft"/>';
this._div.innerHTML = '<img src="images/followAircraft.svg" title="Center Map on Aircraft Position" data-bind="css: { mapOptionEnabled: followAircraft() }, click: toggleFollowAircraft"/>';
return this._div;
}
followAircraftControl.addTo(self.map);