AS
Size: a a a
AS
AS
AS
ZZ
AT
ngAfterViewChecked() {
if (this.map === undefined && this.element.nativeElement.clientWidth > 0) {
// init map
}
}
Ć
AS
ngAfterViewChecked() {
if (this.map === undefined && this.element.nativeElement.clientWidth > 0) {
// init map
}
}
private prevWidth = 0;
private prevHeight = 0;
updateView() {
if (!this.map) {
return;
}
if (this.prevWidth !== this.placeholder.nativeElement.offsetWidth
|| this.prevHeight !== this.placeholder.nativeElement.offsetHeight
) {
this.prevWidth = this.placeholder.nativeElement.offsetWidth;
this.prevHeight = this.placeholder.nativeElement.offsetHeight
this.doUpdateView();
}
}
AS
AS
createPopup(e: Mwhouse): Marker {
const popupOptions : PopupOptions = {
autoClose: false,
closeButton: false
};
popup(popupOptions)
.setLatLng([e.latitude, e.longitude])
.setContent(`${e["Штабель"]}`)
.openOn(this.map);
return new Marker([e.latitude, e.longitude]).addTo(this.map)
}
AS
A
Ć
A
з
з
AS