Skip to content

Commit

Permalink
[Fixes #979] Expose mapstore's setViewer to allow for custom GFI panel (
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidQuartz committed May 31, 2022
1 parent ab2d7a7 commit 22ea299
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion geonode_mapstore_client/client/js/utils/AppUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 22ea299

Please sign in to comment.