AnsweredAssumed Answered

Layer.visible property when using 'arcpy.mp.ConvertWebMapToArcGISProject'

Question asked by agelfert on Sep 23, 2020
Latest reply on Sep 29, 2020 by agelfert

What determines whether an arcpy map layer that was created as part of a created created using ...

 

result = arcpy.mp.ConvertWebMapToArcGISProject(WEB_MAP_AS_JSON)

can be turned off? I'm creating a map from the above...

 

aprx = result.ArcGISProject
mymap = aprx.listMaps()[0]

But when I try turn layers invisible, I get this for some:

The attribute 'visible' is not supported on this instance of Layer.

The layers all derive from a Portal webmap so that they have...

 

layer.isWebLayer = True

Most of my layers don't have that issue and wilingly switch to :

layer.visible = False
>> Success

Is this limitation based on a setting in the webmap or in the underlying map services (item) ? Thanks.

Outcomes