@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
|
-
|
|
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(
|
|
216
|
+
return this.layer.isVisibleAtResolution(currentResolution);
|
|
212
217
|
}
|
|
213
218
|
return false;
|
|
214
219
|
}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.2.0-dev.
|
|
1
|
+
{"version":"1.2.0-dev.2681771892", "build":"2681771892", "date":"16/07/2026"}
|