Skip to content

Commit

Permalink
change layer object
Browse files Browse the repository at this point in the history
  • Loading branch information
aziz-access committed Apr 4, 2024
1 parent 466c5f6 commit 0af15e6
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -577,19 +577,12 @@ export class ContextService {
delete layerFound.sourceOptions[`format`];
}
const opts: AnyLayerOptions = {
baseLayer: layerFound.baseLayer,
...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,
workspace: layerFound.workspace
opacity: layer.opacity
};
context.layers.push(opts);
} else {
Expand Down

0 comments on commit 0af15e6

Please sign in to comment.