image url naming sanitised

This commit is contained in:
piratefinn 2017-12-08 14:13:47 +00:00
parent 100a3c71a8
commit 644c097f0b
5 changed files with 2 additions and 1 deletions

View file

@ -28,7 +28,7 @@ export class TrailMapComponent implements OnInit, AfterViewInit {
private api: ApiService,
private modalService: BsModalService,
) {
this.assocLogo = 'assets/img/association/' + this.assocMap + '_logo.png';
this.assocLogo = 'assets/img/association/' + this.assocMap + '-logo.png';
}
ngOnInit(): void { }
@ -48,6 +48,7 @@ export class TrailMapComponent implements OnInit, AfterViewInit {
public onMarkerClick(clickedMarker, template: TemplateRef<any>) {
console.log(clickedMarker);
this.clickedMarker = clickedMarker;
this.assocLogo = 'assets/img/association/' + this.assocMap + '-logo.png';
this.openModal(template);
}

View file

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

View file

Before

Width:  |  Height:  |  Size: 260 KiB

After

Width:  |  Height:  |  Size: 260 KiB