-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed timeline and added images to person snapshots.
Next step: Integrate ionic-app for notifications
- Loading branch information
Showing
16 changed files
with
349 additions
and
327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
93 changes: 11 additions & 82 deletions
93
ngapp/src/app/time-bound-map/time-bound-map.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,89 +1,18 @@ | ||
<div class="row"> | ||
<div class="col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-2 col-xs-12"> | ||
<div class="box box-primary"> | ||
<div class="box-header with-border"> | ||
<h3 class="box-title"> | ||
Timeline | ||
</h3> | ||
<div class="box-tools pull-right"> | ||
<span class="badge">{{personSnapshots.length}}</span> people | ||
</div> | ||
</div> | ||
<div class="box-body"> | ||
<div class="form-horizontal container-fluid"> | ||
<div class="form-group"> | ||
<label class="col-md-1 col-sm-3 col-xs-12">From</label> | ||
<p-calendar [(ngModel)]="startTime" [showTime]="true" class="col-md-11 col-sm-9 col-xs-12"></p-calendar> | ||
</div> | ||
<div class="form-group"> | ||
<label class="col-md-1 col-sm-3 col-xs-12">To</label> | ||
<p-calendar [(ngModel)]="endTime" [showTime]="true" class="col-md-11 col-sm-9 xol-xs-12"></p-calendar> | ||
</div> | ||
<div class="form-group"> | ||
<p-checkbox [(ngModel)]="useTrackSegments" binary="true" value="UseTrackSegments" | ||
label="Use Track Segments" | ||
class="col-md-offset-1 col-sm-offset-3 col-md-11 col-sm-9"></p-checkbox> | ||
</div> | ||
</div> | ||
|
||
<div class="row container-fluid"> | ||
<p-slider [(ngModel)]="secondRange" [range]="true" [min]="0" [max]="300" [step]="1"></p-slider> | ||
<p>From {{ from | date:'medium' }} to {{ to | date:'medium' }}</p> | ||
</div> | ||
|
||
<div class="row" *ngIf="globalMap"> | ||
<div class="col-md-12 col-sm-12 col-xs-12"> | ||
<svg x="0" y="0" [attr.width]="globalMap.width" [attr.height]="globalMap.height" class="center-block"> | ||
<g height="100%" width="100%"> | ||
<image [attr.xlink:href]="globalMap.image" x="0" y="0" (click)="backgroundClicked();"></image> | ||
</g> | ||
<div class="nav-tabs-custom"> | ||
|
||
<g *ngFor="let personTrack of personSnapshots" (click)="trackClicked(personTrack);"> | ||
<g *ngIf="personTrack[0] != null"> | ||
<g *ngIf="!isSelected(personTrack[0])"> | ||
<circle [attr.fill]="personTrack[0].colour" r="5" [attr.cx]="personTrack[0].x" | ||
[attr.cy]="personTrack[0].y"></circle> | ||
</g> | ||
<g *ngIf="isSelected(personTrack[0])"> | ||
<circle fill="gold" r="5" [attr.cx]="personTrack[0].x" [attr.cy]="personTrack[0].y"></circle> | ||
</g> | ||
<ul class="nav nav-tabs"> | ||
<li [ngClass]="{'active': active === group}" *ngFor="let group of cameraGroups"> | ||
<a [href]="'#'+group.id" data-toggle="tab">{{group.name}}</a> | ||
</li> | ||
<li class="pull-right"><a href="#" class="text-muted"><i class="fa fa-gear"></i></a></li> | ||
</ul> | ||
|
||
<g *ngIf="!isSelected(personTrack[0])"> | ||
<line [attr.stroke]="personTrack[0].colour" stroke-width="2" | ||
*ngFor="let person of personTrack | slice : 1; let i = index" [attr.x1]="personTrack[i].x" | ||
[attr.y1]="personTrack[i].y" [attr.x2]="personTrack[i+1].x" | ||
[attr.y2]="personTrack[i+1].y"></line> | ||
</g> | ||
<g *ngIf="isSelected(personTrack[0])"> | ||
<line stroke="gold" stroke-width="2" *ngFor="let person of personTrack | slice : 1; let i = index" | ||
[attr.x1]="personTrack[i].x" [attr.y1]="personTrack[i].y" [attr.x2]="personTrack[i+1].x" | ||
[attr.y2]="personTrack[i+1].y"></line> | ||
</g> | ||
|
||
<line [attr.x1]="personTrack[0].x" [attr.y1]="personTrack[0].y" | ||
[attr.x2]="personTrack[0].x + personTrack[0].headDirectionX * 10" | ||
[attr.y2]="personTrack[0].y + personTrack[0].headDirectionY * 10" | ||
[attr.stroke]="personTrack[0].standSitColour" stroke-width="2" | ||
*ngIf="personTrack[0]['headDirectionX'] != null && personTrack[0]['headDirectionY'] != null"></line> | ||
|
||
</g> | ||
</g> | ||
</svg> | ||
</div> | ||
</div> | ||
<div class="tab-content"> | ||
<div class="tab-pane" [ngClass]="{'active': active === group}" [id]="group.id" *ngFor="let group of cameraGroups"> | ||
<div class="container-fluid"> | ||
<app-time-line [cameraGroup]="group"></app-time-line> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="col-md-8 col-md-offset-2 col-sm-12"> | ||
<mat-card> | ||
<mat-card-title>Track Details</mat-card-title> | ||
<mat-card-content> | ||
<app-realtime-info [useRealtimeEndpoint]="false" [showAll]="selectedTrackIndex==-1" [id]="selectedTrackIndex" | ||
[reIDOnClick]="selectedTrackIndex!=-1" [from]="from" [to]="to" | ||
[useTrackSegment]="useTrackSegments" [segmentIndex]="selectedSegmentIndex" | ||
(personClicked)="personClicked($event)"></app-realtime-info> | ||
</mat-card-content> | ||
</mat-card> | ||
</div> | ||
</div> |
Oops, something went wrong.