if lyr.supports("VISIBLE"): if lyr.visible: lyr.visible = False print 'layer visible property toggled off' else: lyr.visible = True print 'layer visible property toggled on' else: print 'layer does not support visible property'
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.