Hello. I went ahead and added in something like the following in MapView...
onLayerViewStateChanged: {
console.log("LAYER NAME: "+layer.name);
var stateFlag = layerViewState.statusFlags;
if (stateFlag == Enums.LayerViewStatusActive)
console.log("layerViewState Active");
if (stateFlag == Enums.LayerViewStatusNotVisible)
console.log("layerViewState Not Visible");
if (stateFlag == Enums.LayerViewStatusOutOfScale)
console.log("layerViewState Out of scale");
if (stateFlag == Enums.LayerViewStatusLoading)
console.log("layerViewState Loading");
if (stateFlag == Enums.LayerViewStatusError)
console.log("layerViewState Error");
}
This resulted in...
qml: LAYER NAME: USA Soils Map Units
qml: layerViewState Not Visible
qml: LAYER NAME: USA Soils Map Units
qml: layerViewState Active
So seems like the end result is that it is "Active". I also checked map.operationalLayers.get(0).visible and it is "true".
Thanks for the feedback! I'm still baffled and don't know why it isn't visible.