The problem is that when I enter map.addLayer(granada); , then layer.control changes its state, collapse occurs somewhere, and expand somewhere. I noticed that in the control layer tree I used collapse:true, because of this, it collapses, while others expand.
What do I need to do so that when using map.addLayer(granada); layer.control state didn't change?
There is such a code(it is taken from the example):
The problem is that when I enter
map.addLayer(granada);
, then layer.control changes its state, collapse occurs somewhere, and expand somewhere. I noticed that in the control layer tree I usedcollapse:true
, because of this, it collapses, while others expand. What do I need to do so that when usingmap.addLayer(granada);
layer.control state didn't change?