diff --git a/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts b/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts index 2efc2ef..65f5086 100644 --- a/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts +++ b/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts @@ -383,7 +383,7 @@ export class ItemLayersComponent extends LayerGroupComponent implements OnChange this.selectionLayer=null; if(this.mapEventHandlerInstalled && itemLayers.length==1 && this.getItemlayer(itemLayers[0]).item.itemType == 'vnd.farmmaps.itemtype.shape.processed') { this.selectionLayer = this.createSelectionLayer(this.getItemlayer(itemLayers[0])); - olLayers.push(this.selectionLayer) + if(this.selectionLayer) olLayers.push(this.selectionLayer) } } }