import * as L from 'leaflet'; import 'leaflet-routing-machine'; const map: L.Map = L.map('map-container'); L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: '© OpenStreetMap contributors' }).addTo(map); L.Routing.control({ waypoints: [ L.latLng(57.74, 11.94), L.latLng(57.6792, 11.949) ] }).addTo(map);