Closed ramiassi closed 2 years ago
I could force the map to redraw itself by calling the updateSize method. I have chosen to redraw the map After View Initialization:
ngAfterViewInit(): void {
setTimeout(() => {
this.map.instance.updateSize();
}, 200);
}
I was trying to display a map inside a BsModalRef when it didn't show up. I used the basic provided sample:
It is showing correctly in all the other components as long as they are not inside a modal. The problem is that there is no errors in the browser console or the compiler.