How to re-apply WMS layers in Yandex map?

Hello, comrades! Faced with a strange problem. Please help to find the likely problem.

Yandex map paint a WMS layer that is formed GeoServer. This is done pretty simple: map.layers.add(first_layer). Layer is applied on the card instantly without any problem. Now when I try to map another layer, I first removed first, and then apply the second. Do this according to documentation:
map.layers.remove(first_layer)
map.layers.add(second_layer)


The first layer is removed, but the second layer does not appear. There is a second layer only when the zoom change. On Zuma, which initially occurred operation, the second layer is not displayed. Also, I tried to first apply a second coat, and then apply the first layer. The behavior is similar. C than can be connected?
April 4th 20 at 00:59
0 answer

Find more questions by tags JavaScriptYandex.Maps