qwc2 2025.11.27 → 2025.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1100,7 +1100,7 @@ var IdentifyViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
1100
1100
|
return htmlReactParser(text, options);
|
|
1101
1101
|
});
|
|
1102
1102
|
_defineProperty(_this, "attributeLinkClicked", function (ev) {
|
|
1103
|
-
_this.props.openExternalUrl(ev.
|
|
1103
|
+
_this.props.openExternalUrl(ev.currentTarget.href, ev.target.target, {
|
|
1104
1104
|
docked: _this.props.iframeDialogsInitiallyDocked
|
|
1105
1105
|
});
|
|
1106
1106
|
ev.preventDefault();
|
package/package.json
CHANGED
package/plugins/MapTip.js
CHANGED
|
@@ -177,7 +177,7 @@ var MapTip = /*#__PURE__*/function (_React$Component) {
|
|
|
177
177
|
return htmlReactParser(text, options);
|
|
178
178
|
});
|
|
179
179
|
_defineProperty(_this, "attributeLinkClicked", function (ev) {
|
|
180
|
-
_this.props.openExternalUrl(ev.
|
|
180
|
+
_this.props.openExternalUrl(ev.currentTarget.href, ev.target.target, {
|
|
181
181
|
docked: _this.props.iframeDialogsInitiallyDocked
|
|
182
182
|
});
|
|
183
183
|
ev.preventDefault();
|
package/utils/IdentifyUtils.js
CHANGED
|
@@ -295,6 +295,10 @@ var IdentifyUtils = {
|
|
|
295
295
|
if (htmlContent.length > 0) {
|
|
296
296
|
featureResult.properties.htmlContent = htmlContent[0].textContent;
|
|
297
297
|
featureResult.properties.htmlContentInline = htmlContent[0].getAttribute("inline") === "1" || htmlContent[0].getAttribute("inline") === "true";
|
|
298
|
+
featureResult.properties.htmlContent = featureResult.properties.htmlContent.replace(/translate\(([^)]+)\)/g, function (match, cap) {
|
|
299
|
+
var _translations$layers$2, _translations$layers2;
|
|
300
|
+
return (_translations$layers$2 = translations === null || translations === void 0 || (_translations$layers2 = translations.layers) === null || _translations$layers2 === void 0 || (_translations$layers2 = _translations$layers2[layername]) === null || _translations$layers2 === void 0 || (_translations$layers2 = _translations$layers2.fields) === null || _translations$layers2 === void 0 ? void 0 : _translations$layers2[cap]) !== null && _translations$layers$2 !== void 0 ? _translations$layers$2 : cap;
|
|
301
|
+
});
|
|
298
302
|
}
|
|
299
303
|
if (!isEmpty(attrmapping)) {
|
|
300
304
|
featureResult.attribnames = attrmapping;
|