[android] keep location component's layers hidden when new style with the "layer-below" option is applied
This commit is contained in:
committed by
Łukasz Paczos
parent
056073a904
commit
f5a0e96a5f
@@ -111,6 +111,11 @@ final class LocationLayerController {
|
||||
if (layerBelow == null || !layerBelow.equals(newLayerBelowOption)) {
|
||||
removeLayers();
|
||||
addLayers(newLayerBelowOption);
|
||||
if (isHidden) {
|
||||
for (String layerId : layerMap) {
|
||||
setLayerVisibility(layerId, false);
|
||||
}
|
||||
}
|
||||
setRenderMode(renderMode);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user