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

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

Merged
merged 3 commits into from
Aug 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading