简体   繁体   English

是否可以在openlayers的矢量层上更改悬停时矢量层的zindex?

[英]is it possible to change zindex of vector layer on hover on vector layer in openlayers?

I have 2 vector layers .to which I set initially that way that inside_buffer is on top. 我有2个矢量层。最初,将inside_buffer设置在上面。 like this 像这样

this.app.inside_vector.setZIndex(80); this.app.inside_vector.setZIndex(80);

So I want now when user hover over this inside vector layer my 所以现在我想要当用户将鼠标悬停在此内部矢量层上时

this.app.vector.setZIndex(76); this.app.vector.setZIndex(76);

should have more zindex then inside vector ? 在vector里面应该有更多的zindex吗? is it possible ? 可能吗 ?

You need to specify the problem. 您需要指定问题。 Of course you can change z-index of layers, independently from a limit of initial value. 当然,您可以独立于初始值的限制更改层的z索引。 Take a look for example in documentation . 文档为例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM