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);