What determines whether an arcpy map layer that was created as part of a created created using ...
result <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>mp<SPAN class="punctuation token">.</SPAN>ConvertWebMapToArcGISProject<SPAN class="punctuation token">(</SPAN>WEB_MAP_AS_JSON<SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
can be turned off? I'm creating a map from the above...
aprx <SPAN class="operator token">=</SPAN> result<SPAN class="punctuation token">.</SPAN>ArcGISProject
mymap <SPAN class="operator token">=</SPAN> aprx<SPAN class="punctuation token">.</SPAN>listMaps<SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">[</SPAN><SPAN class="number token">0</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN></SPAN>
But when I try turn layers invisible, I get this for some:
The attribute 'visible' is not supported on this instance of Layer.<SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
The layers all derive from a Portal webmap so that they have...
layer<SPAN class="punctuation token">.</SPAN>isWebLayer <SPAN class="operator token">=</SPAN> <SPAN class="token boolean">True</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
Most of my layers don't have that issue and wilingly switch to :
layer<SPAN class="punctuation token">.</SPAN>visible <SPAN class="operator token">=</SPAN> <SPAN class="token boolean">False</SPAN>
<SPAN class="operator token">>></SPAN> Success<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN></SPAN>
Is this limitation based on a setting in the webmap or in the underlying map services (item) ? Thanks.