diff --git a/web/client/components/map/openlayers/plugins/FlatGeobufLayer.js b/web/client/components/map/openlayers/plugins/FlatGeobufLayer.js index 1e7b027173..d2fc29a565 100644 --- a/web/client/components/map/openlayers/plugins/FlatGeobufLayer.js +++ b/web/client/components/map/openlayers/plugins/FlatGeobufLayer.js @@ -49,8 +49,8 @@ const getFlatGeobufStyle = (layer, options, map) => { const createLoader = (source, options, strategy) => (extent, resolution, projection) => { getFlatGeobufOl().then(flatgeobuf => { - const { headers } = getRequestConfigurationByUrl(options.url, options?.security?.sourceId); - const secureUrl = updateUrlParams(options.url, options.params); + const { headers, params } = getRequestConfigurationByUrl(options.url, options?.security?.sourceId); + const secureUrl = updateUrlParams(options.url, params); const loader = flatgeobuf.createLoader(source, secureUrl, 'EPSG:4326', strategy, true, headers); source.setLoader(loader); loader(extent, resolution, projection); // force load at creation(needed for flatgeobuf only)