diff --git a/src/components/ConcernementMapItem.vue b/src/components/ConcernementMapItem.vue index ff586a6..6bb6802 100644 --- a/src/components/ConcernementMapItem.vue +++ b/src/components/ConcernementMapItem.vue @@ -1196,12 +1196,12 @@ export default { if (this.map_mode === "superposition") { this.paper_main_object.children.entites_superposes.visible = true; // highlight of entite part of opened superposition - if (this.$route.query.superposition_id) { - let superposition_id = this.$route.query.superposition_id; - if(superposition_id){ - let ids = superposition_id.match(/(\d+)_(\d+)__(\d+)_(\d+)/i) - let group = this.paper_main_object.children['entites_superposes']; - if(group){ + let group = this.paper_main_object.children['entites_superposes']; + if(group){ + if (this.$route.query.superposition_id) { + let superposition_id = this.$route.query.superposition_id; + if(superposition_id){ + let ids = superposition_id.match(/(\d+)_(\d+)__(\d+)_(\d+)/i) group.children.forEach((item) => { if ( (this.cid === parseInt(ids[1]) && item.item_id === parseInt(ids[2])) || (this.cid === parseInt(ids[3]) && item.item_id === parseInt(ids[4])) ) { @@ -1219,6 +1219,16 @@ export default { } }) } + }else{ + group.children.forEach((item) => { + if(!this.is_hover) { + item.definition = this.paper_symbol_definitions.entite; + if (item.focused) { + item.scale(0.5) + item.focused = false; + } + } + }) } } } else {