@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.
@@ -2163,20 +2163,31 @@ class WidgetMapComponent extends DataWidgetComponent {
2163
2163
  }
2164
2164
  getFeatureFromServer(wmsLayers, pixel) {
2165
2165
  for (const layer of wmsLayers) {
2166
- const url = layer
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 (url && url.indexOf('I=-1') === -1 && url.indexOf('J=-1') === -1) {
2174
- this.store.dispatch(DashboardActions.getWmsFeatures({
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) {