even after using
this.map.invalidateSize()
the map tiles are not loaded completely. this is working perfectly fine with the older version of angular 7 any workaround?
sample of the code:
@ViewChild('mapwindow', { static: false}) mapElement: any;
this.map = L.map(this.mapElement.nativeElement, {
center: [20.593684, 78.96288],
zoom: 10,
zoomControl: true,
trackResize: true,
layers: [osm]
});
const baseLayers = {
OSM: osm,
Satellite: googleSat,
Hybrid: googleHybrid,
Terrain: googleTerrain
};
L.control.layers(baseLayers, null, { position: "topright", collapsed: true }).addTo(this.map);
this.map.invalidateSize();