Select to view content in your preferred language

Notebook Web Tool: Map Refresh Configuration

328
2
07-08-2024 12:51 PM
Status: Open
ScottShield
Occasional Contributor

Add a configuration option to the Notebook Web Tool or Analysis tool that forces a map refresh after a web tool is run successfully. Changes to a web map are not apparent to end user after a Web Tool is run, page must be refreshed manually to see some Web Tool results. For example, adding a layer to the map, changing symbology or basemap.

Refresh is required when running the notebook web tool from Map Viewer or Experience Builder

2 Comments
xlt208
by Esri Contributor

Hi @ScottShield,

 

Thanks for the feedback! 

 

Were you outputting layers from the web tool?

In Map Viewer, we expect output layers to be added to the map automatically as soon as the tool finishes running. 

In Experience Builder, you can configure an output layer parameter to "Add result layers to map automatically". This option is usually toggled on by default. 

xlt208_0-1720726622467.png

 

Or, were you updating a web map item (adding layers, adjusting basemap and symbology, etc.) from within the notebook web tool using ArcGIS API for Python? 

 

Thank you!

Lingtao

Product Engineer for ArcGIS Notebooks

 

 

ScottShield

I ran a test that updated the basemap after running the web tool. The map did not refresh after the tool ran. Another test filtered a layer that was already in the map, same thing happened, had to refresh manually. I can try testing again with your suggestions if you think it should be working.