是否可以在openlayers中的矢量图层上悬停矢量图层的zindex?

时间:2017-08-28 12:09:11

标签: javascript openlayers openlayers-3

我有2个矢量图层。我最初设置的方式是inside_buffer在顶部。像这样

  

this.app.inside_vector.setZIndex(80);

所以我现在想要当用户将鼠标悬停在这个内部矢量图层上时

  

this.app.vector.setZIndex(76);

在矢量中应该有更多zindex吗?有可能吗?

1 个答案:

答案 0 :(得分:0)

您需要指定问题。当然,您可以独立于初始值的限制来更改图层的z-index。请查看documentation中的示例。

相关问题