@provoly/dashboard 0.23.11 → 0.23.13
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/esm2022/lib/core/model/widget-map-manifest.interface.mjs +1 -1
- package/esm2022/lib/dashboard/store/dashboard.actions.mjs +3 -1
- package/esm2022/lib/dashboard/store/dashboard.effects.mjs +28 -1
- package/esm2022/lib/dashboard/store/wms.service.mjs +29 -1
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +15 -4
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +14 -3
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +57 -0
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/model/widget-map-manifest.interface.d.ts +1 -0
- package/lib/dashboard/store/dashboard.actions.d.ts +20 -0
- package/lib/dashboard/store/dashboard.effects.d.ts +3 -0
- package/lib/dashboard/store/wms.service.d.ts +3 -0
- package/package.json +37 -37
|
@@ -2163,20 +2163,31 @@ class WidgetMapComponent extends DataWidgetComponent {
|
|
|
2163
2163
|
}
|
|
2164
2164
|
getFeatureFromServer(wmsLayers, pixel) {
|
|
2165
2165
|
for (const layer of wmsLayers) {
|
|
2166
|
-
|
|
2166
|
+
let url = layer
|
|
2167
2167
|
.getSource()
|
|
2168
2168
|
.getFeatureInfoUrl(pixel, this.map.getView().getResolution(), this.map.getView().getProjection(), {
|
|
2169
2169
|
INFO_FORMAT: 'application/json',
|
|
2170
2170
|
FEATURE_COUNT: 10,
|
|
2171
2171
|
...layer.getProperties()['getFeatureInfoAdditionalParameters']
|
|
2172
2172
|
});
|
|
2173
|
-
if (
|
|
2174
|
-
|
|
2173
|
+
if (this.optionsCopy.layers?.find((l) => {
|
|
2174
|
+
return l.title === layer.getProperties()['title'];
|
|
2175
|
+
})?.getWfsFeaturesForTooltips) {
|
|
2176
|
+
this.store.dispatch(DashboardActions.getWfsFeaturesForPointStackTooltips({
|
|
2175
2177
|
url,
|
|
2176
2178
|
oClass: layer.getProperties()['oClass'] ?? '',
|
|
2177
2179
|
coordinates: pixel
|
|
2178
2180
|
}));
|
|
2179
2181
|
}
|
|
2182
|
+
else {
|
|
2183
|
+
if (url && url.indexOf('I=-1') === -1 && url.indexOf('J=-1') === -1) {
|
|
2184
|
+
this.store.dispatch(DashboardActions.getWmsFeatures({
|
|
2185
|
+
url,
|
|
2186
|
+
oClass: layer.getProperties()['oClass'] ?? '',
|
|
2187
|
+
coordinates: pixel
|
|
2188
|
+
}));
|
|
2189
|
+
}
|
|
2190
|
+
}
|
|
2180
2191
|
}
|
|
2181
2192
|
}
|
|
2182
2193
|
changeWmsClass($event, layer) {
|