| Número de ID del error |
BUG-000173532 |
| Enviado | January 10, 2025 |
| Última modificación | January 27, 2025 |
| Relacionado con | ArcGIS API for Python |
| Versión encontrada | 2.4 |
| Sistema operativo | Windows OS |
| Versión de sistema operativo | 11.0 64 bit |
| Estado | As Designed
Tras revisión realizada por el equipo de desarrollo, se ha determinado que este comportamiento es acorde con lo designado. Consulte los detalles en la sección Información adicional.
|
Información adicional
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())
```
Solución alternativa
Use the web map's JSON property to check the layers' URLs.
Pasos para reproducir