Push to back

This commit is contained in:
portree_kid 2020-07-02 13:01:28 +02:00
parent 921321d3b0
commit 8a646490c8

View File

@ -69,6 +69,11 @@
if (this.groundnet !== undefined) { if (this.groundnet !== undefined) {
if (visible) { if (visible) {
this.groundnet.addTo(this.$parent.mapObject) this.groundnet.addTo(this.$parent.mapObject)
this.groundnet.eachLayer(l => {
if (l) {
l.bringToBack()
}
})
} else { } else {
this.groundnet.removeFrom(this.$parent.mapObject) this.groundnet.removeFrom(this.$parent.mapObject)
} }