diff --git a/src/lib/context/shared/layer-context.directive.ts b/src/lib/context/shared/layer-context.directive.ts index 44dd314abd..68aa4972d5 100644 --- a/src/lib/context/shared/layer-context.directive.ts +++ b/src/lib/context/shared/layer-context.directive.ts @@ -68,7 +68,9 @@ export class LayerContextDirective implements OnInit, OnDestroy { this.dataSourceService .createAsyncDataSource(dataSourceContext) .subscribe(dataSource => { - this.getLayerParamVisibilityUrl(dataSource.id, layerContext); + this.getLayerParamVisibilityUrl( + dataSource.options['id'] ? + dataSource.options['id'] : dataSource.id , layerContext); this.map.addLayer( this.layerService.createLayer(dataSource, layerContext)); });