Commit 53b62eea071764bb84c8ba9a1e6923beaf27f87b

Authored by Administrator
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 9 styleUrls: ['map-items.scss']
10 10 })
11 11  
12   -export class MapItemsComponent{
  12 +export class MapItemsComponent implements OnInit{
13 13 @Input() position: string;
14 14 public map: L.Map;
15 15 public icon: L.Icon;
16   - constructor() {
  16 +
  17 + ngOnInit(){
17 18 this.icon = L.icon({
18 19 iconUrl: '/assets/icons/marker-icon.png',
19 20 iconSize: [25, 41], // size of the icon
... ...