Skip to content

Commit

Permalink
fix(filter): fix topo function
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed Aug 20, 2018
1 parent 7d45a9d commit b25d9ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down
8 changes: 4 additions & 4 deletions projects/geo/src/lib/filter/shared/ogc-filter.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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
Expand Down Expand Up @@ -177,7 +177,7 @@ export class OGCFilterService {
options['fieldNameGeometry']
);
this.filterByOgc(
datasource,
wmsDatasource,
ogcFilterWriter.buildFilter(options.ogcFilters.filters)
);
options['ogcFiltered'] = true;
Expand Down

0 comments on commit b25d9ed

Please sign in to comment.