|
|
@@ -2,7 +2,7 @@ import { Component, Input, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@
|
|
|
import { ConfirmationService, MenuItem, MessageService } from 'primeng/api';
|
|
|
import { Extent } from 'ol/extent';
|
|
|
import { Group, Tile, Vector as VectorLayer } from 'ol/layer';
|
|
|
-import { OSM, TileWMS, Vector, Vector as VectorSource } from 'ol/source';
|
|
|
+import { OSM, TileWMS, Vector as VectorSource } from 'ol/source';
|
|
|
import GeoJSON from 'ol/format/GeoJSON';
|
|
|
import { transform, transformExtent } from 'ol/proj';
|
|
|
import { Circle as CircleStyle, Fill, Stroke, Style } from 'ol/style';
|
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
HsEventBusService
|
|
|
} from 'hslayers-ng';
|
|
|
import { environment } from '../../../../environments/environment';
|
|
|
+import Geometry from 'ol/geom/Geometry';
|
|
|
|
|
|
@Component({
|
|
|
selector: 'app-map',
|
|
|
@@ -31,7 +32,7 @@ export class MapComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
@Input('units') units: Array<{ drivers?: Drivers; generalInfo?: GeneralInfo; holder?: any; lastpos?: Lastpos; sensors?: Array<Sensor>; unit?: Unit }>;
|
|
|
mapReady: boolean = false;
|
|
|
dataReady: boolean = false;
|
|
|
- unitsLayer: VectorLayer<Vector<any>>;
|
|
|
+ unitsLayer: VectorLayer<VectorSource<Geometry>>;
|
|
|
|
|
|
constructor(
|
|
|
private confirmationService: ConfirmationService,
|