const highlightEntityAndMapIcon = function()

in src/StrippetsVisual.ts [338:367]


        const highlightEntityAndMapIcon = function (entity, entityClass, entityColor, isHighlighted) {
            let highlighted = false;

            if (entity.type && entity.name) {
                const entityTypeId = entity.type + '_' + entity.name;
                if (isHighlighted && !highlightedEntities[entityTypeId]) {
                    highlightedEntities[entityTypeId] = {
                        id: entity.id,
                        type: entity.type,
                        name: entity.name,
                        bucket: entity.bucket
                    };
                    adjustIconColor(highlightedEntities[entityTypeId], entity.bucket, entityColor, true);
                    highlighted = true;
                }
                if (updateIM && !iconMap[entityTypeId]) {
                    iconMap[entityTypeId] = {
                        class: entityClass || 'fa fa-circle',
                        color: entityColor === null ? colors.shift() : entityColor,
                        type: entity.type,
                        name: entity.name,
                        isDefault: false
                    };

                    adjustIconColor(iconMap[entityTypeId], entity.bucket, entityColor, false);
                }
            }

            return highlighted;
        };