Skip to content

Commit

Permalink
Expose PermaLinkUtils in API
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Mar 13, 2024
1 parent 22bd8fe commit 06c4de3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qwc2",
"version": "2024.03.12-master",
"version": "2024.03.13-master",
"description": "QGIS Web Client 2 core",
"author": "Sourcepole AG",
"license": "BSD-2-Clause",
Expand Down
3 changes: 2 additions & 1 deletion plugins/API.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import * as themeActions from '../actions/theme';
import * as windowsActions from '../actions/windows';
import CoordinatesUtils from '../utils/CoordinatesUtils';
import LayerUtils from '../utils/LayerUtils';
import * as PermaLinkUtils from '../utils/PermaLinkUtils';
import ServiceLayerUtils from '../utils/ServiceLayerUtils';
import VectorLayerUtils from '../utils/VectorLayerUtils';


/**
* Exposes an API for interacting with QWC2 via `window.qwc2`.
*
Expand Down Expand Up @@ -93,6 +93,7 @@ class API extends React.Component {
window.qwc2.drawGeometry = this.drawGeometry;
window.qwc2.getState = this.getState;
window.qwc2.CoordinatesUtils = CoordinatesUtils;
window.qwc2.PermaLinkUtils = PermaLinkUtils;
window.qwc2.VectorLayerUtils = VectorLayerUtils;
}
static propTypes = {
Expand Down

0 comments on commit 06c4de3

Please sign in to comment.