-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Step 12.14: Added location message template
- Loading branch information
1 parent
15f02f3
commit 142b54d
Showing
1 changed file
with
22 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<ion-header> | ||
<ion-toolbar color="whatsapp"> | ||
<ion-title>Send Location</ion-title> | ||
|
||
<ion-buttons end> | ||
<button ion-button class="dismiss-button" (click)="viewCtrl.dismiss()"><ion-icon name="close"></ion-icon></button> | ||
</ion-buttons> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-content class="location-message-content"> | ||
<ion-list> | ||
<agm-map [latitude]="lat" [longitude]="lng" [zoom]="zoom"> | ||
<agm-marker [latitude]="lat" [longitude]="lng"></agm-marker> | ||
</agm-map> | ||
<ion-item (click)="sendLocation()"> | ||
<ion-icon name="compass" item-left></ion-icon> | ||
<h2>Send your current location</h2> | ||
<p *ngIf="accuracy !== -1">Accurate to {{accuracy}} meters</p> | ||
</ion-item> | ||
</ion-list> | ||
</ion-content> |