@igo2/geo 21.0.0-next.22 → 21.0.0-next.23
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
|
@@ -4208,16 +4208,16 @@ class LayerBase {
|
|
|
4208
4208
|
return this.ol.getMinResolution();
|
|
4209
4209
|
}
|
|
4210
4210
|
set visible(value) {
|
|
4211
|
-
if (value === this.
|
|
4211
|
+
if (value === this._visible$.value) {
|
|
4212
4212
|
return;
|
|
4213
4213
|
}
|
|
4214
4214
|
this.ol.setVisible(value);
|
|
4215
4215
|
this._visible$.next(value);
|
|
4216
4216
|
}
|
|
4217
4217
|
get visible() {
|
|
4218
|
-
return this._visible$.value ??
|
|
4218
|
+
return this._visible$.value ?? true; // Default to true if undefined
|
|
4219
4219
|
}
|
|
4220
|
-
_visible$ = new BehaviorSubject(
|
|
4220
|
+
_visible$ = new BehaviorSubject(undefined);
|
|
4221
4221
|
visible$ = this._visible$.asObservable();
|
|
4222
4222
|
get parent() {
|
|
4223
4223
|
return this.parent$.value;
|
|
@@ -10885,7 +10885,6 @@ class DataSourceService {
|
|
|
10885
10885
|
ogcFilterService = inject(OGCFilterService);
|
|
10886
10886
|
languageService = inject(LanguageService);
|
|
10887
10887
|
messageService = inject(MessageService);
|
|
10888
|
-
xhrInterceptor = inject(XHR_INTERCEPTOR, { optional: true });
|
|
10889
10888
|
createAsyncDataSource(options, detailedContextUri) {
|
|
10890
10889
|
if (!options.type) {
|
|
10891
10890
|
console.error(options);
|
|
@@ -30061,7 +30060,7 @@ class ImportExportComponent {
|
|
|
30061
30060
|
layer.dataSource.ol.getFeatures().length === 0) {
|
|
30062
30061
|
previousSpecs.push({
|
|
30063
30062
|
id: layer.id,
|
|
30064
|
-
visible: layer.visible,
|
|
30063
|
+
visible: layer.visible ?? true,
|
|
30065
30064
|
opacity: layer.opacity,
|
|
30066
30065
|
queryable: layer.queryable
|
|
30067
30066
|
});
|