Skip to content

Commit

Permalink
fix(arcgis layer): attribution cause crash on add layer. (#942)
Browse files Browse the repository at this point in the history
  • Loading branch information
pelord authored Dec 2, 2021
1 parent c21283d commit dbdf136
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,7 @@ export class CapabilitiesService {
legendInfo,
style,
timeFilter,
timeExtent,
attributions
timeExtent
}
);
const options = ObjectUtils.removeUndefined({
Expand All @@ -422,6 +421,7 @@ export class CapabilitiesService {
sourceFields: arcgisOptions.fields,
queryTitle: arcgisOptions.displayField
});
options.params.attributions = attributions;
return ObjectUtils.mergeDeep(options, baseOptions);
}

Expand Down Expand Up @@ -473,10 +473,10 @@ export class CapabilitiesService {
},
legendInfo,
timeFilter,
attributions,
sourceFields: arcgisOptions.fields,
queryTitle: arcgisOptions.displayField
});
options.attributions = attributions;
return ObjectUtils.mergeDeep(options, baseOptions);
}

Expand Down

0 comments on commit dbdf136

Please sign in to comment.