diff --git a/public/app/plugins/panel/geomap/GeomapPanel.tsx b/public/app/plugins/panel/geomap/GeomapPanel.tsx index 105531839e9..c49c6a37b73 100644 --- a/public/app/plugins/panel/geomap/GeomapPanel.tsx +++ b/public/app/plugins/panel/geomap/GeomapPanel.tsx @@ -120,6 +120,12 @@ export class GeomapPanel extends Component { return true; // always? } + componentDidUpdate(prevProps: Props) { + if (this.map && (this.props.height !== prevProps.height || this.props.width !== prevProps.width)) { + this.map.updateSize(); + } + } + /** This function will actually update the JSON model */ private doOptionsUpdate(selected: number) { const { options, onOptionsChange } = this.props;