更改 Openlayers 中选定的图层样式
I need to change the style so that when I select a polygon from my layer it doesn't have the blue line as it is in this image. Does anyone know where I make this change with Openlayers?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我假设您正在使用
Select
交互 - 它有一个style
参数,如文档中所述:https://openlayers.org/en/latest/apidoc/module-ol_interaction_Select-Select.html
还有一个示例:
https://openlayers.org/en/latest/examples/select-features。 html
I assume you are using the
Select
interaction - it has astyle
parameter as described in the docs:https://openlayers.org/en/latest/apidoc/module-ol_interaction_Select-Select.html
There is also an example for this:
https://openlayers.org/en/latest/examples/select-features.html