AW-6046 Angular improvement
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
@@ -15,7 +15,6 @@ export class DeviceOrientationService {
|
||||
// Calculate equation components
|
||||
const cA = Math.cos(alphaRad);
|
||||
const sA = Math.sin(alphaRad);
|
||||
const cB = Math.cos(betaRad);
|
||||
const sB = Math.sin(betaRad);
|
||||
const cG = Math.cos(gammaRad);
|
||||
const sG = Math.sin(gammaRad);
|
||||
@@ -23,7 +22,6 @@ export class DeviceOrientationService {
|
||||
// Calculate A, B, C rotation components
|
||||
const rA = - cA * sG - sA * sB * cG;
|
||||
const rB = - sA * sG + cA * sB * cG;
|
||||
const rC = - cB * cG;
|
||||
|
||||
// Calculate compass heading
|
||||
let compassHeading = Math.atan(rA / rB);
|
||||
|
@@ -1,8 +1,4 @@
|
||||
import { Injectable} from '@angular/core';
|
||||
import { Feature } from 'ol';
|
||||
import { Point } from 'ol/geom';
|
||||
import * as extent from 'ol/extent';
|
||||
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
@Injectable()
|
||||
export class FeatureIconService {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Observer, Observable,BehaviorSubject } from 'rxjs';
|
||||
import { BehaviorSubject, Observable } from 'rxjs';
|
||||
|
||||
/**
|
||||
* GeolocationService class.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
import { Injectable} from '@angular/core';
|
||||
import {DatePipe} from '@angular/common';
|
||||
import {TimespanService} from '@farmmaps/common';
|
||||
import { IItemLayer, ITemporalItemLayer,TemporalItemLayer} from '../models/item.layer';
|
||||
import { DatePipe } from '@angular/common';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { TimespanService } from '@farmmaps/common';
|
||||
import { IItemLayer, ITemporalItemLayer } from '../models/item.layer';
|
||||
|
||||
|
||||
@Injectable()
|
||||
|
Reference in New Issue
Block a user