Implement copassheading
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good

This commit is contained in:
Willem Dantuma
2020-01-03 16:40:14 +01:00
parent 41d55110ea
commit 50d1d9645a
5 changed files with 51 additions and 17 deletions

View File

@@ -62,7 +62,9 @@ export class GpsLocation implements OnInit,OnChanges{
this.instance.setPosition(fromLonLat([p.coords.longitude, p.coords.latitude]));
this.locationTolerance = p.coords.accuracy;
this.recalcLocationTolerance();
this.heading = p.coords.heading;
}
if(changes.heading && this.instance) {
this.rotate = "rotate(" + Math.round(changes.heading.currentValue) + " 500 500)";
}
}
}