Commit 53b62eea071764bb84c8ba9a1e6923beaf27f87b
1 parent
c984e4db
virtual page fix
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
src/app/data/map-items/map-items-component.ts
@@ -9,11 +9,12 @@ import * as L from 'leaflet'; | @@ -9,11 +9,12 @@ import * as L from 'leaflet'; | ||
9 | styleUrls: ['map-items.scss'] | 9 | styleUrls: ['map-items.scss'] |
10 | }) | 10 | }) |
11 | 11 | ||
12 | -export class MapItemsComponent{ | 12 | +export class MapItemsComponent implements OnInit{ |
13 | @Input() position: string; | 13 | @Input() position: string; |
14 | public map: L.Map; | 14 | public map: L.Map; |
15 | public icon: L.Icon; | 15 | public icon: L.Icon; |
16 | - constructor() { | 16 | + |
17 | + ngOnInit(){ | ||
17 | this.icon = L.icon({ | 18 | this.icon = L.icon({ |
18 | iconUrl: '/assets/icons/marker-icon.png', | 19 | iconUrl: '/assets/icons/marker-icon.png', |
19 | iconSize: [25, 41], // size of the icon | 20 | iconSize: [25, 41], // size of the icon |