Permalink
Browse files

Step 17.11: Add all parties locations on the map

  • Loading branch information...
1 parent b321dc8 commit 01896ed0bbd2587710356c2421b633c355cf65f6 @dotansimha dotansimha committed with DAB0mB Sep 27, 2016
Showing with 14 additions and 1 deletion.
  1. +14 −1 client/imports/app/parties/parties-list.component.html
@@ -18,7 +18,7 @@
<li *ngFor="let party of parties | async">
<a [routerLink]="['/party', party._id]">{{party.name}}</a>
<p>{{party.description}}</p>
- <p>{{party.location}}</p>
+ <p>{{party.location.name}}</p>
<button [hidden]="!isOwner(party)" (click)="removeParty(party)">X</button>
<div>
Who is coming:
@@ -29,5 +29,18 @@
</li>
</ul>
+ <sebm-google-map
+ [latitude]="0"
+ [longitude]="0"
+ [zoom]="1">
+ <div *ngFor="let party of parties | async">
+ <sebm-google-map-marker
+ *ngIf="party.location.lat"
+ [latitude]="party.location.lat"
+ [longitude]="party.location.lng">
+ </sebm-google-map-marker>
+ </div>
+ </sebm-google-map>
+
<pagination-controls (pageChange)="onPageChanged($event)"></pagination-controls>
</div>

0 comments on commit 01896ed

Please sign in to comment.