From fac03860ae01b669f5eddadaea9b5faa7500a35a Mon Sep 17 00:00:00 2001 From: DavidQuartz Date: Thu, 19 May 2022 15:28:09 +0000 Subject: [PATCH] exposed setViewer on master --- geonode_mapstore_client/client/js/utils/AppUtils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/geonode_mapstore_client/client/js/utils/AppUtils.js b/geonode_mapstore_client/client/js/utils/AppUtils.js index e3a89604f7..0d43d71cbe 100644 --- a/geonode_mapstore_client/client/js/utils/AppUtils.js +++ b/geonode_mapstore_client/client/js/utils/AppUtils.js @@ -28,6 +28,7 @@ import isString from 'lodash/isString'; import url from 'url'; import axios from '@mapstore/framework/libs/ajax'; import { addLocaleData } from 'react-intl'; +import { setViewer } from '@mapstore/framework/utils/MapInfoUtils'; let epicsCache = {}; let actionListeners = {}; @@ -217,7 +218,8 @@ export function setupConfiguration({ const listeners = (actionListeners[type] || []) .filter((l) => l !== listener); actionListeners[type] = listeners; - } + }, + setGetFeatureInfoViewer: setViewer }; if (window.onInitMapStoreAPI) { window.onInitMapStoreAPI(window.MapStoreAPI, geoNodePageConfig);