{"ast":null,"code":"import { __decorate } from \"tslib\";\nimport __NG_CLI_RESOURCE__0 from \"./map.component.html?ngResource\";\nimport __NG_CLI_RESOURCE__1 from \"./map.component.scss?ngResource\";\nimport { Component } from '@angular/core';\nimport * as L from 'leaflet';\nimport { RestaurantsService } from 'src/app/services/restaurants.service';\nlet MapComponent = class MapComponent {\n constructor(restaurantsService) {\n this.restaurantsService = restaurantsService;\n }\n // Fonction d'initialisation du composant.\n ngOnInit() {\n // Déclaration de la carte avec les coordonnées du centre et le niveau de zoom.\n const macarte = L.map('frugalmap').setView([48.85513, 2.353429], 9);\n L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {\n attribution: 'FatBoar'\n }).addTo(macarte);\n const myIcon = L.icon({\n // iconUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.2.0/images/marker-icon.png'\n iconUrl: \"../assets/img/marker/markericon.png\"\n });\n this.restaurantsService.getRestaurants().subscribe(data => {\n console.log('test resto', data);\n data.forEach(res => {\n var marker = L.marker([res.latitude, res.longitude], {\n icon: myIcon\n }).addTo(macarte);\n marker.bindPopup(`