diff --git a/demo/src/app/geo/edition/edition.component.html b/demo/src/app/geo/edition/edition.component.html
index 9195dccc74..d1834d1fbc 100644
--- a/demo/src/app/geo/edition/edition.component.html
+++ b/demo/src/app/geo/edition/edition.component.html
@@ -10,12 +10,13 @@
{
+ const layer = {
+ optionsFromCapabilities: true,
+ title: 'WMS Geoserver filterable ',
+ visible: true,
+ source: dataSource
+ };
+ this.map.addLayer(this.layerService.createLayer(layer));
+ });
+
+ const wfsDataSourceOptions: WFSDataSourceOptions = {
type: 'wfs',
url: 'https://geoegl.msp.gouv.qc.ca/apis/ws/swtq',
params: {
@@ -92,9 +132,9 @@ export class AppEditionComponent implements OnInit {
};
this.dataSourceService
- .createAsyncDataSource(wfsDatasource)
+ .createAsyncDataSource(wfsDataSourceOptions)
.subscribe(dataSource => {
- const layer: LayerOptions = {
+ const layer = {
title: 'Simple WFS ',
visible: true,
source: dataSource
diff --git a/packages/common/src/lib/edition/shared/edition.interfaces.ts b/packages/common/src/lib/edition/shared/edition.interfaces.ts
index fdb10546a0..e8b1a25345 100644
--- a/packages/common/src/lib/edition/shared/edition.interfaces.ts
+++ b/packages/common/src/lib/edition/shared/edition.interfaces.ts
@@ -1,7 +1,7 @@
import { ActionStore } from '../../action';
import { EntityStore, EntityTableTemplate } from '../../entity';
-export interface EditorConfig {
+export interface EditorOptions {
id: string;
title: string;
tableTemplate?: EntityTableTemplate;
diff --git a/packages/common/src/lib/edition/shared/editor.ts b/packages/common/src/lib/edition/shared/editor.ts
index d3664ef014..095b63bfec 100644
--- a/packages/common/src/lib/edition/shared/editor.ts
+++ b/packages/common/src/lib/edition/shared/editor.ts
@@ -5,7 +5,7 @@ import { ActionStore } from '../../action';
import { EntityRecord, EntityStore, EntityTableTemplate } from '../../entity';
import { Widget } from '../../widget';
-import { EditorConfig } from './edition.interfaces';
+import { EditorOptions } from './edition.interfaces';
/**
* This class is responsible of managing the relations between
@@ -52,27 +52,27 @@ export class Editor {
/**
* Editor id
*/
- get id(): string { return this.config.id; }
+ get id(): string { return this.options.id; }
/**
* Editor title
*/
- get title(): string { return this.config.title; }
+ get title(): string { return this.options.title; }
/**
* Entity table template
*/
- get tableTemplate(): EntityTableTemplate { return this.config.tableTemplate; }
+ get tableTemplate(): EntityTableTemplate { return this.options.tableTemplate; }
/**
* Entities store
*/
- get entityStore(): EntityStore