Refactors control center for cars
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
<agm-map disableDefaultUI="true" id="map" #map [zoom]="zoom" [latitude]="center.lat" [longitude]="center.lng">
|
||||
<agm-marker (markerClick)="openInfoWindow(m.value.vin)" [openInfoWindow]="true"
|
||||
*ngFor="let m of car_markers | keyvalue" [iconUrl]="m.value.iconUrl"
|
||||
[latitude]="m.value.lat" [longitude]="m.value.lng" [animation]="(m.value.near_crash_event)?'BOUNCE':''">
|
||||
<agm-info-window style="opacity: 0.5!important;" (infoWindowClose)="closeInfoWindow(m.value.vin)"
|
||||
[isOpen]="isInfoWindowOpen(m.value.vin)" [latitude]="m.value.lat"
|
||||
[longitude]="m.value.lng">
|
||||
<p>VIN: {{m.value.vin}}</p>
|
||||
<p>OEM: {{m.value.oem}}</p>
|
||||
<p>Model Type: {{m.value.modelType}}</p>
|
||||
<p>Velocity: {{m.value.velocity}}</p>
|
||||
<p>Timestamp: {{m.value.timestamp}}</p>
|
||||
<p>NCE: {{m.value.near_crash_event}}</p>
|
||||
<agm-marker (markerClick)="openInfoWindow(m.value.carEntity.vin)" [openInfoWindow]="true"
|
||||
*ngFor="let m of car_markers | keyvalue" [iconUrl]="getIconUrlCar(m.value.carEvent.near_crash_event)"
|
||||
[latitude]="m.value.carEvent.gps_location.latitude" [longitude]="m.value.carEvent.gps_location.longitude" [animation]="(m.value.carEvent.near_crash_event)?'BOUNCE':''">
|
||||
<agm-info-window style="opacity: 0.5!important;" (infoWindowClose)="closeInfoWindow(m.value.carEntity.vin)"
|
||||
[isOpen]="isInfoWindowOpen(m.value.carEntity.vin)" [latitude]="m.value.carEvent.lat"
|
||||
[longitude]="m.value.carEvent.lng">
|
||||
<p>VIN: {{m.value.carEntity.vin}}</p>
|
||||
<p>OEM: {{m.value.carEntity.oem}}</p>
|
||||
<p>Model Type: {{m.value.carEntity.modelType}}</p>
|
||||
<p>Velocity: {{m.value.carEvent.velocity}}</p>
|
||||
<p>Timestamp: {{m.value.carEvent.timestamp}}</p>
|
||||
<p>NCE: {{m.value.carEvent.near_crash_event}}</p>
|
||||
</agm-info-window>
|
||||
</agm-marker>
|
||||
<agm-marker *ngFor="let m of traffic_light_markers | keyvalue" [iconUrl]="m.value.iconUrl"
|
||||
|
||||
Reference in New Issue
Block a user