@provoly/dashboard 0.23.11 → 0.23.12

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,13 +2163,16 @@ 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 (layer.getProperties()['getFeatureInfoAdditionalParameters']['STYLES']) {
2174
+ url = url.replace('STYLES=', `STYLES=${layer.getProperties()['getFeatureInfoAdditionalParameters']['STYLES']}`);
2175
+ }
2173
2176
  if (url && url.indexOf('I=-1') === -1 && url.indexOf('J=-1') === -1) {
2174
2177
  this.store.dispatch(DashboardActions.getWmsFeatures({
2175
2178
  url,