From dbdf1361238b6655aa124071a5568986026309c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-=C3=89tienne=20Lord?= <7397743+pelord@users.noreply.github.com> Date: Thu, 2 Dec 2021 15:02:11 -0500 Subject: [PATCH] fix(arcgis layer): attribution cause crash on add layer. (#942) --- .../geo/src/lib/datasource/shared/capabilities.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/geo/src/lib/datasource/shared/capabilities.service.ts b/packages/geo/src/lib/datasource/shared/capabilities.service.ts index 7534433f5b..dfd5ab9b1b 100644 --- a/packages/geo/src/lib/datasource/shared/capabilities.service.ts +++ b/packages/geo/src/lib/datasource/shared/capabilities.service.ts @@ -404,8 +404,7 @@ export class CapabilitiesService { legendInfo, style, timeFilter, - timeExtent, - attributions + timeExtent } ); const options = ObjectUtils.removeUndefined({ @@ -422,6 +421,7 @@ export class CapabilitiesService { sourceFields: arcgisOptions.fields, queryTitle: arcgisOptions.displayField }); + options.params.attributions = attributions; return ObjectUtils.mergeDeep(options, baseOptions); } @@ -473,10 +473,10 @@ export class CapabilitiesService { }, legendInfo, timeFilter, - attributions, sourceFields: arcgisOptions.fields, queryTitle: arcgisOptions.displayField }); + options.attributions = attributions; return ObjectUtils.mergeDeep(options, baseOptions); }