add_legend(interactive = TRUE) currently requires classification to be a mapgl_classification object. This prevents interactive legends when a layer is styled with match_expr(), even though match_expr() is a common and valid way to map feature IDs to colors.
I prepared a reproducible example to show what I mean. The code is available here, with an interactive report here.

add_legend(interactive = TRUE)currently requiresclassificationto be amapgl_classificationobject. This prevents interactive legends when a layer is styled withmatch_expr(), even thoughmatch_expr()is a common and valid way to map feature IDs to colors.I prepared a reproducible example to show what I mean. The code is available here, with an interactive report here.