Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am using two Vectorlayers. I use one of them to show Circles with a certain radius. This layer has zIndex 10, the other layer is used to show markers and has zindex 1000.

I want my users to be able to modify the circle, so i defined the following modify:

var modify = new Modify({
            source: this.getCircleLayer().getSource(),
            wrapX: true,
            style: new Style({
                stroke: new Stroke({color:'#AA0000', width:2}),
                fill: new Fill({color: '#AA000059'}),
                image: new CircleStyle({radius:3, fill: new Fill({color: '#AA0000'})}),
                zIndex: 1,
            }),
            //condition: shiftKeyOnly,
        })

Now I can see both of my layers and the MarkerLayer is shown on top of the CircleLayer, but the point to modify the circle is shown on top of the Markerlayer and I don't understand why? Is there a way to change this?

question from:https://stackoverflow.com/questions/65933358/openlayer-zindex-of-modify

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
406 views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...