Phi: fix "center on aircraft"
Correctly pan to aircraft when mode gets re-enabled even if aircraft is not moving
This commit is contained in:
parent
79cf519b6f
commit
88880813ee
1 changed files with 3 additions and 0 deletions
|
@ -48,6 +48,9 @@ define(
|
||||||
|
|
||||||
self.toggleFollowAircraft = function(a) {
|
self.toggleFollowAircraft = function(a) {
|
||||||
self.followAircraft(!self.followAircraft());
|
self.followAircraft(!self.followAircraft());
|
||||||
|
if( self.followAircraft() ) {
|
||||||
|
self.map.setView(self.mapCenter());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
self.altitude = ko.observable(0).extend({
|
self.altitude = ko.observable(0).extend({
|
||||||
|
|
Loading…
Add table
Reference in a new issue