所以,我试图在使用 ol.interaction.Select 选择它们时突出显示聚类功能 . 首先,我使用选择交互来捕获群集功能上的单击行为 . 然后,我访问 features 属性以获取群集功能中的所有功能 .

在用例I 'm working on, we then show a popup, displaying information on each feature. On hovering in the popup table, each feature should be highlighted (in red dots). This is done by adding it to another layer and deleting it when it' s中不再徘徊 . 为了模拟这个,我做了一个pen,在超时后添加和删除了一个功能 .

单击群集功能(svg图标)时的结果是:

但它应该是:

不知何故,选定的点,从 ol.interaction.Select 始终显示在任何其他图层的顶部 . 我已经尝试在图层上设置zIndex,但这似乎并没有影响任何东西 .

所以我的问题是,有没有办法在选择交互创建的特征上方显示红色突出显示点?