diff --git a/x-pack/legacy/plugins/maps/public/connected_components/widget_overlay/view_control/view_control.js b/x-pack/legacy/plugins/maps/public/connected_components/widget_overlay/view_control/view_control.js
index 445e5be542ffb..19b60221ead36 100644
--- a/x-pack/legacy/plugins/maps/public/connected_components/widget_overlay/view_control/view_control.js
+++ b/x-pack/legacy/plugins/maps/public/connected_components/widget_overlay/view_control/view_control.js
@@ -5,28 +5,33 @@
*/
import _ from 'lodash';
-import React from 'react';
+import React, { Fragment } from 'react';
import { EuiText } from '@elastic/eui';
import { DECIMAL_DEGREES_PRECISION } from '../../../../common/constants';
import { FormattedMessage } from '@kbn/i18n/react';
export function ViewControl({ mouseCoordinates, zoom }) {
- if (!mouseCoordinates) {
- return null;
+ let latLon;
+ if (mouseCoordinates) {
+ latLon = (
+