qwc2 2025.10.14 → 2025.10.15
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.
|
@@ -169,7 +169,6 @@ var MapSelection = /*#__PURE__*/function (_React$Component) {
|
|
|
169
169
|
MeasureUtils.updateFeatureMeasurements(feature, _this.props.geomType, _this.props.projection, settings);
|
|
170
170
|
});
|
|
171
171
|
_this.drawInteraction = null;
|
|
172
|
-
_this.map = MapUtils.getHook(MapUtils.GET_MAP);
|
|
173
172
|
|
|
174
173
|
// create a layer to draw on
|
|
175
174
|
_this.selectionLayer = new ol.layer.Vector({
|
|
@@ -186,6 +185,7 @@ var MapSelection = /*#__PURE__*/function (_React$Component) {
|
|
|
186
185
|
return _createClass(MapSelection, [{
|
|
187
186
|
key: "componentDidMount",
|
|
188
187
|
value: function componentDidMount() {
|
|
188
|
+
this.map = MapUtils.getHook(MapUtils.GET_MAP);
|
|
189
189
|
this.map.addLayer(this.selectionLayer);
|
|
190
190
|
if (this.props.active) {
|
|
191
191
|
this.addDrawInteraction();
|
package/package.json
CHANGED
package/plugins/HeightProfile.js
CHANGED
|
@@ -47,6 +47,7 @@ import { changeMeasurementState } from '../actions/measurement';
|
|
|
47
47
|
import Icon from '../components/Icon';
|
|
48
48
|
import ResizeableWindow from '../components/ResizeableWindow';
|
|
49
49
|
import Spinner from '../components/widgets/Spinner';
|
|
50
|
+
import CoordinatesUtils from '../utils/CoordinatesUtils';
|
|
50
51
|
import { getElevationInterface } from '../utils/ElevationInterface';
|
|
51
52
|
import LayerUtils from '../utils/LayerUtils';
|
|
52
53
|
import LocaleUtils from '../utils/LocaleUtils';
|
|
@@ -134,6 +135,10 @@ var HeightProfilePrintDialog_ = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
134
135
|
var scale = Math.round(MapUtils.computeForZoom(_this.props.map.scales, _this.props.map.zoom));
|
|
135
136
|
var exportParams = LayerUtils.collectPrintParams(_this.props.layers, _this.props.theme, scale, mapCrs, true, false);
|
|
136
137
|
var highlightParams = VectorLayerUtils.createPrintHighlighParams([layer], mapCrs, scale);
|
|
138
|
+
var bounds = _toConsumableArray(_this.props.map.bbox.bounds);
|
|
139
|
+
if (CoordinatesUtils.getAxisOrder(_this.props.map.projection).substr(0, 2) === 'ne') {
|
|
140
|
+
bounds = [bounds[1], bounds[0], bounds[3], bounds[2]];
|
|
141
|
+
}
|
|
137
142
|
var imageParams = _objectSpread({
|
|
138
143
|
SERVICE: 'WMS',
|
|
139
144
|
VERSION: '1.3.0',
|
|
@@ -141,7 +146,7 @@ var HeightProfilePrintDialog_ = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
141
146
|
TRANSPARENT: 'true',
|
|
142
147
|
TILED: 'false',
|
|
143
148
|
CRS: _this.props.map.projection,
|
|
144
|
-
BBOX:
|
|
149
|
+
BBOX: bounds,
|
|
145
150
|
WIDTH: _this.props.map.size.width,
|
|
146
151
|
HEIGHT: _this.props.map.size.height,
|
|
147
152
|
HIGHLIGHT_GEOM: highlightParams.geoms.join(";"),
|
|
@@ -414,7 +419,7 @@ var HeightProfile = /*#__PURE__*/function (_React$Component) {
|
|
|
414
419
|
} : undefined
|
|
415
420
|
};
|
|
416
421
|
var datasetSelector = null;
|
|
417
|
-
if (_this3.state.data.length > 1) {
|
|
422
|
+
if (interactive && _this3.state.data.length > 1) {
|
|
418
423
|
datasetSelector = /*#__PURE__*/React.createElement("div", {
|
|
419
424
|
className: "height-profile-dataset-select"
|
|
420
425
|
}, _this3.state.data.map(function (dataset, idx) {
|