diff --git a/projects/context/src/lib/context-manager/shared/context.service.ts b/projects/context/src/lib/context-manager/shared/context.service.ts index 8ad899f4d0..de44cc4eac 100644 --- a/projects/context/src/lib/context-manager/shared/context.service.ts +++ b/projects/context/src/lib/context-manager/shared/context.service.ts @@ -355,13 +355,12 @@ export class ContextService { const layers = igoMap.layers$.getValue(); - let order = layers.length; for (const l of layers) { const layer: any = l; const opts = { id: layer.options.id ? String(layer.options.id) : undefined, title: layer.options.title, - order: order--, + zIndex: layer.zIndex, visible: layer.visible, sourceOptions: { type: layer.dataSource.options.type,