From 06c4de351bd7d23fc0689fd64f700db1751626a9 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Wed, 13 Mar 2024 16:39:22 +0100 Subject: [PATCH] Expose PermaLinkUtils in API --- package.json | 2 +- plugins/API.jsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1db953a4..aaa137e3 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/plugins/API.jsx b/plugins/API.jsx index f10695fd..e91f6fe7 100644 --- a/plugins/API.jsx +++ b/plugins/API.jsx @@ -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`. * @@ -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 = {