Numéro d’ID de bogue |
BUG-000173532 |
Envoi | January 10, 2025 |
Dernière modification | January 27, 2025 |
S’applique à | ArcGIS API for Python |
Version trouvée | 2.4 |
Système d’exploitation | Windows OS |
Version du système d’exploitation | 11.0 64 bit |
Statut | As Designed
Après examen par l’équipe de développement, il a été déterminé que ce comportement est prévu. Pour plus d’informations, reportez-vous à la section Informations supplémentaires.
|
Informations supplémentaires
The arcgis.map module is a new addition, and while some functionality and workflows from the arcgis.mapping module has been carried over, they are not identical
For maps with broken layer URLs, it is recommended to update them using the methods available in the Item class. Refer to the example code below:
```
gis = GIS(profile="your_online_profile")
item = gis.content.get("map_item_id")
data = item.get_data()
data["operationalLayers"][0]["url"] = "my_new_url"
item.update(data=data)
print(item.get_data())
```
Solution de contournement
Use the web map's JSON property to check the layers' URLs.
Étapes pour reproduire