Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.10] [maps] fix 'by value' map does not fill dashboard panel on initial page load in 8.10 (#165326) #165369

Merged
merged 6 commits into from
Sep 1, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,13 @@ export class MbMap extends Component<Props, State> {
}
});
mbMap.on('load', () => {
emptyImage = new Image();
// Map instance automatically resizes when container size changes.
// However, issues may arise if container resizes before map finishes loading.
// This is occuring when by-value maps are used in dashboard.
// To prevent issues, resize container after load
mbMap.resize();

emptyImage = new Image();
emptyImage.src =
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=';
emptyImage.crossOrigin = 'anonymous';
Expand Down