We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6735aea commit 4b09ed5Copy full SHA for 4b09ed5
1 file changed
web/client/plugins/widgetbuilder/enhancers/layerSelector.js
@@ -16,7 +16,7 @@ import API from '../../../api/catalog';
16
export const toLayer = (r, service) => ["tms", "wfs"].includes(service?.type) // for tms and wfs the layer is ready
17
? r
18
// the type wms is default (for csw and wms), wmts have to be passed. // TODO: improve and centralize more
19
- : API[service?.type || 'wms'].getLayerFromRecord(r);
+ : API[service?.type || 'wms'].getLayerFromRecord(r, {service: service.layerOptions});
20
21
// checks for tms wmts in order to addSearch() to skip addSearch
22
export const addSearchObservable = (selected, service) => ["tms", "wmts"].includes(service?.type) ? Rx.Observable.of(toLayer(selected, service)) : addSearch(toLayer(selected, service));
0 commit comments