maptalks.js icon indicating copy to clipboard operation
maptalks.js copied to clipboard

如何对GroupGLLayer里面的图层进行排序?通过setZIndex 设置不生效,图层中有WMSTileLayer TileLayer PointLayer类型

Open openforus opened this issue 11 months ago • 3 comments

maptalks's version and what browser you use? 1.0.0-rc.33

Issue description GroupGLLayer里面的图层排序通过setZIndex 设置不生效

Please provide a reproduction URL (on any jsfiddle like site)

openforus avatar Jan 15 '25 08:01 openforus

https://mdpress.glicon.design/p/5enoiCkUaADcSh76yCKjp/TUCENG/groupgllayer.html#%E8%B0%83%E6%95%B4groupgllayer%E9%87%8C%E5%9B%BE%E5%B1%82%E7%9A%84%E9%A1%BA%E5%BA%8F

deyihu avatar Jan 15 '25 08:01 deyihu

@deyihu 谢谢你给出的例子,其实我是知道有这个setZIndex来设置的,最终发现原来是GroupGLLayer加了地形后,在地形渲染的状态是无法对图层排序生效的,这个要生效有没有哪里可以设置?同理在隐藏和显示图层的时候在有地形状态下隐藏图层后隐藏前的图层有残留在地图中,要缩放地图才会刷新清除之前图层隐藏前的图像,这个在有地形的模式有没有方法刷新地图清除图层隐藏后的图形残留?

openforus avatar Jan 16 '25 02:01 openforus

@fuzhenn

deyihu avatar Jan 16 '25 03:01 deyihu