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 Mar 19, 2024
1 parent 2de5c63 commit 466c5f6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ export class ContextService {
delete layerFound.sourceOptions[`source`];
delete layerFound.sourceOptions[`format`];
}
const opts = {
const opts: AnyLayerOptions = {
baseLayer: layerFound.baseLayer,
title: layer.options.title,
zIndex: layer.zIndex,
Expand All @@ -588,7 +588,8 @@ export class ContextService {
clusterParam: layerFound[`clusterParam`],
visible: layer.visible,
opacity: layer.opacity,
sourceOptions: layerFound.sourceOptions
sourceOptions: layerFound.sourceOptions,
workspace: layerFound.workspace
};
context.layers.push(opts);
} else {
Expand Down

0 comments on commit 466c5f6

Please sign in to comment.