Saving an app does not save layer visibility

4333
3
01-12-2015 09:56 PM
StephenLead
Regular Contributor III

Create a web map (using ArcGIS.com) containing two layers, then switch one of them on, with the other one off.

Create an app in the Web App Builder based on this web map, and switch both layers on, then save the app.

Launch the app - the second layer's visibility hasn't been saved. It seems that the Web App Builder isn't persisting the layer visibility.

Cheers,

Steve

0 Kudos
3 Replies
NEvatt
by
New Contributor III

Hi Steve,

If I am not mistaken, web map settings like layers being turned on or off and extent of the map can only be saved in the web map (arcgis online/ portal).  Where when you save using Web AppBuilder, you are saving the widgets that will be used, the theme, colors, logos, yadda yadda.  So therefore, saves inside of Web AppBuilder will not affect layer visiblity when running the application in the future.

At least, that is the impression that I get.

-Nat

SimonFisher
Occasional Contributor II

Nat is correct, this needs to be saved in the web map.  I'm sure it can be done via code as well, but easier via the web map.

0 Kudos
StephenLead
Regular Contributor III

Cool, thanks for the info. Note that you can override the default extent within the app, on the Map tab:

Specify the initial spatial extent of the map when the application starts up.

Use Current Map View

Use Web Map's Default Extent

0 Kudos