1
0
Fork 0

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:
Torsten Dreyer 2015-08-07 18:53:12 +02:00
parent 79cf519b6f
commit 88880813ee

View file

@ -48,6 +48,9 @@ define(
self.toggleFollowAircraft = function(a) {
self.followAircraft(!self.followAircraft());
if( self.followAircraft() ) {
self.map.setView(self.mapCenter());
}
}
self.altitude = ko.observable(0).extend({