@provoly/dashboard 0.23.12 → 0.24.0

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.
@@ -2170,16 +2170,24 @@ class WidgetMapComponent extends DataWidgetComponent {
2170
2170
  FEATURE_COUNT: 10,
2171
2171
  ...layer.getProperties()['getFeatureInfoAdditionalParameters']
2172
2172
  });
2173
- if (layer.getProperties()['getFeatureInfoAdditionalParameters']['STYLES']) {
2174
- url = url.replace('STYLES=', `STYLES=${layer.getProperties()['getFeatureInfoAdditionalParameters']['STYLES']}`);
2175
- }
2176
- if (url && url.indexOf('I=-1') === -1 && url.indexOf('J=-1') === -1) {
2177
- 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({
2178
2177
  url,
2179
2178
  oClass: layer.getProperties()['oClass'] ?? '',
2180
2179
  coordinates: pixel
2181
2180
  }));
2182
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
+ }
2183
2191
  }
2184
2192
  }
2185
2193
  changeWmsClass($event, layer) {