diff --git a/projects/geo/src/lib/filter/ogc-filterable-item/ogc-filterable-item.component.ts b/projects/geo/src/lib/filter/ogc-filterable-item/ogc-filterable-item.component.ts index 2405b9235c..bd4e54892b 100644 --- a/projects/geo/src/lib/filter/ogc-filterable-item/ogc-filterable-item.component.ts +++ b/projects/geo/src/lib/filter/ogc-filterable-item/ogc-filterable-item.component.ts @@ -51,7 +51,7 @@ export class OgcFilterableItemComponent implements OnInit { ngOnInit() { this.ogcFilterService.getSourceFields(this.datasource); - this.ogcFilterService.setOgcFiltersOptions(this.datasource); + this.ogcFilterService.setOgcWFSFiltersOptions(this.datasource); if ( this.datasource.options.ogcFilters && diff --git a/projects/geo/src/lib/filter/shared/ogc-filter.service.ts b/projects/geo/src/lib/filter/shared/ogc-filter.service.ts index aee1d914c1..b8866fc445 100644 --- a/projects/geo/src/lib/filter/shared/ogc-filter.service.ts +++ b/projects/geo/src/lib/filter/shared/ogc-filter.service.ts @@ -62,7 +62,7 @@ export class OGCFilterService { } } - public setOgcFiltersOptions(wfsDatasource: OgcFilterableDataSource) { + public setOgcWFSFiltersOptions(wfsDatasource: OgcFilterableDataSource) { const options: any = wfsDatasource.options; const ogcFilterWriter = new OgcFilterWriter(); if (options.ogcFilters.filters) { @@ -88,8 +88,8 @@ export class OGCFilterService { : options.ogcFilters.filtersAreEditable; } - public asfasfas(datasource: WMSDataSource) { - const options: any = datasource.options; + public setOgcWMSFiltersOptions(wmsDatasource: WMSDataSource) { + const options: any = wmsDatasource.options; if ( options['sourceFields'] === undefined || Object.keys(options['sourceFields']).length === 0 @@ -177,7 +177,7 @@ export class OGCFilterService { options['fieldNameGeometry'] ); this.filterByOgc( - datasource, + wmsDatasource, ogcFilterWriter.buildFilter(options.ogcFilters.filters) ); options['ogcFiltered'] = true;