Changed from dropdown to modal
This commit is contained in:
parent
d3b8cc8b97
commit
155a32a9ad
3 changed files with 38 additions and 5 deletions
|
@ -14,6 +14,7 @@ export class TrailMapComponent implements OnInit, AfterViewInit {
|
|||
lng: number = -2.8007;
|
||||
zoom: number = 12;
|
||||
public modalRef: BsModalRef;
|
||||
public modalRef2: BsModalRef;
|
||||
clickedMarker: any;
|
||||
assocMap = 'lis';
|
||||
assocLogo: string;
|
||||
|
@ -45,6 +46,10 @@ export class TrailMapComponent implements OnInit, AfterViewInit {
|
|||
this.modalRef = this.modalService.show(template);
|
||||
}
|
||||
|
||||
openModalAssoc(templateAssoc: TemplateRef<any>) {
|
||||
this.modalRef2 = this.modalService.show(templateAssoc);
|
||||
}
|
||||
|
||||
public onMarkerClick(clickedMarker, template: TemplateRef<any>) {
|
||||
console.log(clickedMarker);
|
||||
this.clickedMarker = clickedMarker;
|
||||
|
|
Reference in a new issue