@vtx/map 1.1.28 → 1.1.29
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.
package/lib/VtxMap/OlMap/Map.js
CHANGED
|
@@ -4146,15 +4146,15 @@ var OlMap = /*#__PURE__*/function (_React$Component) {
|
|
|
4146
4146
|
x: e.pixel ? e.pixel[0] : undefined,
|
|
4147
4147
|
y: e.pixel ? e.pixel[1] : undefined
|
|
4148
4148
|
};
|
|
4149
|
-
var
|
|
4149
|
+
var temp = [];
|
|
4150
4150
|
t.olLayers.map(function (item) {
|
|
4151
4151
|
if (item.layer) {
|
|
4152
|
-
|
|
4152
|
+
temp.push(t.getFeatureInfo(e, t.state.gis.getView(), item.layer.getSource()));
|
|
4153
4153
|
}
|
|
4154
4154
|
});
|
|
4155
4155
|
|
|
4156
|
-
if (
|
|
4157
|
-
obj.features =
|
|
4156
|
+
if (temp.length) {
|
|
4157
|
+
obj.features = temp;
|
|
4158
4158
|
}
|
|
4159
4159
|
|
|
4160
4160
|
t.props.clickMap(obj);
|
|
@@ -4184,7 +4184,7 @@ var OlMap = /*#__PURE__*/function (_React$Component) {
|
|
|
4184
4184
|
|
|
4185
4185
|
|
|
4186
4186
|
param.QUERY_LAYERS = param.LAYERS;
|
|
4187
|
-
temp = [];
|
|
4187
|
+
var temp = [];
|
|
4188
4188
|
|
|
4189
4189
|
for (var key in param) {
|
|
4190
4190
|
temp.push("".concat(key, "=").concat(param[key]));
|