@igo2/geo 19.0.0-next.22 → 19.0.0-next.24
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.
package/fesm2022/igo2-geo.mjs
CHANGED
|
@@ -2108,7 +2108,8 @@ class DataSource {
|
|
|
2108
2108
|
generateId() {
|
|
2109
2109
|
return generateIdFromSourceOptions(this.options);
|
|
2110
2110
|
}
|
|
2111
|
-
|
|
2111
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2112
|
+
getLegend(_style, _view) {
|
|
2112
2113
|
return this.legend ? this.legend : [];
|
|
2113
2114
|
}
|
|
2114
2115
|
setLegend(options) {
|
|
@@ -10464,7 +10465,7 @@ class LayerLegendComponent {
|
|
|
10464
10465
|
lastlLegend = [];
|
|
10465
10466
|
}
|
|
10466
10467
|
else {
|
|
10467
|
-
lastlLegend = this.layer.dataSource.getLegend();
|
|
10468
|
+
lastlLegend = this.layer.dataSource.getLegend(this.currentStyle, this.view);
|
|
10468
10469
|
}
|
|
10469
10470
|
if (this.updateLegendOnResolutionChange ||
|
|
10470
10471
|
sourceOptions.contentDependentLegend) {
|
|
@@ -10549,7 +10550,7 @@ class LayerLegendComponent {
|
|
|
10549
10550
|
* Update the legend with scale level and style define
|
|
10550
10551
|
*/
|
|
10551
10552
|
updateLegend() {
|
|
10552
|
-
let legendItems = this.layer.dataSource.getLegend();
|
|
10553
|
+
let legendItems = this.layer.dataSource.getLegend(this.currentStyle, this.view);
|
|
10553
10554
|
if (this.layer.legend && this.layer.legend.length > 1) {
|
|
10554
10555
|
legendItems = this.transfertToggleLegendItem(legendItems);
|
|
10555
10556
|
}
|