Ć
Size: a a a
Ć
AT
AT
AS
AS
AT
AT
AS
AT
AT
AS
AS
AS
AS
AS
ngAfterViewInit(): void {
this.map = this.zone.runOutsideAngular(()=>{
const map = new LeafletMap(this.element.nativeElement, {
center: [44.725085, 37.819478],
zoom: 16,
attributionControl: false,
zoomControl: false
});
const url = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
const layer = new TileLayer(url,
{
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}
);
layer.addTo(map);
return map;
});
}
ngAfterViewChecked(): void {
this.map.invalidateSize();
}
AT
AS
AT