Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有机会触发 ol4 中 ol.feature 的手动选择?我在这里看到了帖子,但我有同样的问题:自定义选择样式未应用。任何解决方法可以以编程方式选择正常选择(在地图内)?
我必须解决的问题是 - 如果用户单击外部表中的记录,我必须显示该功能的弹出窗口。这就是我解决问题的方法。
如果您必须设置样式,我认为您需要从地图中删除旧的矢量图层,然后重新绘制该层。对于样式,您将需要使用一个函数,该函数将为所选功能返回不同的样式。