@geogirafe/lib-geoportal 1.2.0-dev.2681709337 → 1.2.0-dev.2681771892

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.
@@ -72,7 +72,12 @@ ${this.htmlUnsafe(this.feedbackTemplateHtml ?? '')}`;
72
72
  return;
73
73
  }
74
74
  this.iconUrl = this.wmsLegendHelper.getIconUrl(this.layer);
75
- this.legendUrls = this.wmsLegendHelper.getLegendUrls(this.layer);
75
+ if (this.isVisibleInCurrentResolution()) {
76
+ this.legendUrls = this.wmsLegendHelper.getLegendUrls(this.layer);
77
+ }
78
+ else {
79
+ this.legendUrls = {};
80
+ }
76
81
  }
77
82
  setWmtsLegend() {
78
83
  if (!(this.layer instanceof LayerWmts)) {
@@ -208,7 +213,7 @@ ${this.htmlUnsafe(this.feedbackTemplateHtml ?? '')}`;
208
213
  }
209
214
  const currentResolution = this.state.position.resolution;
210
215
  if (currentResolution) {
211
- return this.layer.isVisibleAtResolution(this.state.position.resolution);
216
+ return this.layer.isVisibleAtResolution(currentResolution);
212
217
  }
213
218
  return false;
214
219
  }
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "name": "GeoGirafe PSC",
6
6
  "url": "https://doc.geogirafe.org"
7
7
  },
8
- "version": "1.2.0-dev.2681709337",
8
+ "version": "1.2.0-dev.2681771892",
9
9
  "type": "module",
10
10
  "engines": {
11
11
  "node": ">=20.19.0"
@@ -1 +1 @@
1
- {"version":"1.2.0-dev.2681709337", "build":"2681709337", "date":"16/07/2026"}
1
+ {"version":"1.2.0-dev.2681771892", "build":"2681771892", "date":"16/07/2026"}