Skip to content

Commit 4b09ed5

Browse files
committed
pass service.layerOptions to getLayerFromRecords, allows to load layers without vendorparams in a dashboard
1 parent 6735aea commit 4b09ed5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/client/plugins/widgetbuilder/enhancers/layerSelector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import API from '../../../api/catalog';
1616
export const toLayer = (r, service) => ["tms", "wfs"].includes(service?.type) // for tms and wfs the layer is ready
1717
? r
1818
// 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);
19+
: API[service?.type || 'wms'].getLayerFromRecord(r, {service: service.layerOptions});
2020

2121
// checks for tms wmts in order to addSearch() to skip addSearch
2222
export const addSearchObservable = (selected, service) => ["tms", "wmts"].includes(service?.type) ? Rx.Observable.of(toLayer(selected, service)) : addSearch(toLayer(selected, service));

0 commit comments

Comments
 (0)