We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
bug
当我的layer是放在openlayers提供的LayerGroup里面的时候,this.getLayers().getArray()返回的不是一个ol.layer.Base,而是一个LayerGroup,这个时候后面的一系列都会报错,望及时处理修复
The text was updated successfully, but these errors were encountered:
谢谢您报的缺陷,可以提供一个简单的例子重现该问题吗?
Sorry, something went wrong.
就是这里,如果在openlayers中使用了ol.layer.Group来对图层进行分组添加,在鼠标在地图上移动时会跳到这里,提示 , 是因为layers = this.getLayers().getArray();里面还会存在ol.layer.Group; ol.layer.Group.getLayers()才会取到里面的所有layer,才能去调用getSource(); 所以这里希望能够完善一下,在这里我临时处理的方法是这样的
可能只是针对这种情况做的特殊处理,不知道在openlayers里面这一块还有没有其他特殊情况,还请处理完善
f2858b6
songyumeng
tangqinGiser
No branches or pull requests
Request a feature or report a bug? [这是一个需求还是一个缺陷]
bug
One-line summary [问题简述]
当我的layer是放在openlayers提供的LayerGroup里面的时候,this.getLayers().getArray()返回的不是一个ol.layer.Base,而是一个LayerGroup,这个时候后面的一系列都会报错,望及时处理修复
Version [产品及版本]
Actual Behavior [当前现象]
Expected Behavior [期望现象]
Example of reproducing the issue [重现现象的例子]
What is motivation or use case for changing the behavior? [需求的场景和目的是什么?]
The text was updated successfully, but these errors were encountered: