laptop and a wrench

Bug

The 'addLayerToGroup' python function adds the layer redundantly to the target group layer as well as in the Table Of Contents as a separate layer in ArcGIS Pro.

Zuletzt veröffentlicht: February 18, 2019 ArcGIS Pro
Bug-ID-Nummer BUG-000110978
EingereichtJanuary 20, 2018
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS Pro
Gefunden in Version2.1
StatusWill Not Be Addressed

Zusätzliche Informationen

This is being marked as designed. If you look at the code carefully, when calling m.addDataFromPath WITHIN addLayerToGroup, it is doing two things: First, adding a layer to the map AND also adding a layer to the group. The work around is to either add a layer to the map and then use MOVELAYER or reference a layer file. See code sample below#AddLayerToGroupm.addLayerToGroup(grpLyr, lyrFile, "TOP") #THIS DOES NOT DUPLICATEm.addLayerToGroup(grpLyr, m.addDataFromPath(FC), "TOP") #THIS DOES

Schritte zur Reproduzierung

Bug-ID: BUG-000110978

Software:

  • ArcGIS Pro

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln