@igo2/geo 20.1.0-next.21 → 20.1.0-next.22
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
|
@@ -39208,7 +39208,7 @@ class CatalogBrowserLayerComponent {
|
|
|
39208
39208
|
}
|
|
39209
39209
|
ngOnDestroy() {
|
|
39210
39210
|
this.isPreview$$.unsubscribe();
|
|
39211
|
-
this.resolution
|
|
39211
|
+
this.resolution$$?.unsubscribe();
|
|
39212
39212
|
this.layers$$.unsubscribe();
|
|
39213
39213
|
}
|
|
39214
39214
|
computeTitleTooltip() {
|
|
@@ -39701,6 +39701,7 @@ class CatalogBrowserComponent {
|
|
|
39701
39701
|
if (catalog.profils?.length) {
|
|
39702
39702
|
layer.options.security = { profils: catalog.profils };
|
|
39703
39703
|
}
|
|
39704
|
+
layer.options.id = layer.id;
|
|
39704
39705
|
return this.layerService.createAsyncLayer(layer.options);
|
|
39705
39706
|
});
|
|
39706
39707
|
zip(...layers$).subscribe((layers) => {
|
|
@@ -39734,13 +39735,13 @@ class CatalogBrowserComponent {
|
|
|
39734
39735
|
layers.forEach((layer) => {
|
|
39735
39736
|
this.store().state.update(layer, { added: false });
|
|
39736
39737
|
if (layer.options.baseLayer === true) {
|
|
39737
|
-
const currLayer = this.map().layerController.
|
|
39738
|
+
const currLayer = this.map().layerController.getBySourceId(String(layer.options.id));
|
|
39738
39739
|
if (currLayer !== undefined) {
|
|
39739
39740
|
this.map().layerController.remove(currLayer);
|
|
39740
39741
|
}
|
|
39741
39742
|
}
|
|
39742
39743
|
else {
|
|
39743
|
-
const currLayer = this.map().layerController.
|
|
39744
|
+
const currLayer = this.map().layerController.getBySourceId(layer.id);
|
|
39744
39745
|
if (currLayer !== undefined) {
|
|
39745
39746
|
this.map().layerController.remove(currLayer);
|
|
39746
39747
|
}
|