Skip to content

Commit

Permalink
fix(context): add workspace option with layers when we export context (
Browse files Browse the repository at this point in the history
  • Loading branch information
aziz-access committed May 15, 2024
1 parent 946d9f4 commit a904cbd
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -576,19 +576,14 @@ export class ContextService {
delete layerFound.sourceOptions[`source`];
delete layerFound.sourceOptions[`format`];
}
const opts = {
baseLayer: layerFound.baseLayer,
delete layerFound.source;
const opts: AnyLayerOptions = {
...layerFound,
title: layer.options.title,
zIndex: layer.zIndex,
igoStyle: {
styleByAttribute: layerFoundAs.igoStyle?.styleByAttribute,
clusterBaseStyle: layerFoundAs.igoStyle?.clusterBaseStyle
},
style: layerStyle,
clusterParam: layerFound[`clusterParam`],
visible: layer.visible,
opacity: layer.opacity,
sourceOptions: layerFound.sourceOptions
opacity: layer.opacity
};
context.layers.push(opts);
} else {
Expand Down

0 comments on commit a904cbd

Please sign in to comment.