diff --git a/src/datasource/WMSGroup.js b/src/datasource/WMSGroup.js index 8b881a1a88cf..52d6637ee4b1 100644 --- a/src/datasource/WMSGroup.js +++ b/src/datasource/WMSGroup.js @@ -166,7 +166,7 @@ export default class extends ngeoDatasourceOGCGroup { // (1) Collect layer names from data sources in the group for (const dataSource of this.dataSources) { if (dataSource instanceof ngeoDatasourceOGC && dataSource.visible) { - layerNames = layerNames.concat(dataSource.getWFSLayerNames()); + layerNames = layerNames.concat(dataSource.getWMSLayerNames()); } }