changed code for trail map
This commit is contained in:
parent
9be8326d42
commit
e3db378396
5 changed files with 16 additions and 7 deletions
|
@ -15,6 +15,8 @@ export class TrailMapComponent implements OnInit, AfterViewInit {
|
|||
zoom: number = 12;
|
||||
public modalRef: BsModalRef;
|
||||
clickedMarker: any;
|
||||
assocMap = 'lis';
|
||||
assocLogo: string;
|
||||
|
||||
dataReceived: string = 'loading';
|
||||
|
||||
|
@ -25,7 +27,9 @@ export class TrailMapComponent implements OnInit, AfterViewInit {
|
|||
constructor(
|
||||
private api: ApiService,
|
||||
private modalService: BsModalService,
|
||||
) {}
|
||||
) {
|
||||
this.assocLogo = 'assets/img/association/' + this.assocMap + '_logo.png';
|
||||
}
|
||||
|
||||
ngOnInit(): void { }
|
||||
|
||||
|
@ -64,8 +68,9 @@ export class TrailMapComponent implements OnInit, AfterViewInit {
|
|||
latitude: resp.getSouthWest().lat(),
|
||||
longitude: resp.getSouthWest().lng()
|
||||
},
|
||||
association: this.assocMap,
|
||||
}
|
||||
this.api.getLisData(mapData).subscribe(
|
||||
this.api.getAssocData(mapData).subscribe(
|
||||
result => {
|
||||
this.myStatusModal.hide();
|
||||
this.markers = result.locations;
|
||||
|
|
Reference in a new issue