Add layers in WAB app without using Widgets

481
2
Jump to solution
09-20-2018 09:45 PM
PrashantKirpan
Occasional Contributor

Hi All,

I am new to WAB(developer) and trying to add feature layers in application. I have found couple of customised widgets to add layers on map but is there any way to add layers without using any widgets?

I am trying to minimise widgets in my application so thinking to get urls from any(application config\setting) file and add layers to map?

Is this correct approach or should I use widgets only?

Any help would be appreciated.

Regards,
Prashant

0 Kudos
1 Solution

Accepted Solutions
AnthonyGiles
Frequent Contributor

Prashant,

If these are layers that you want to be available to all users when they open the application then you should add the layers in to the web map that drives the application:

Map and Scene—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers 

Regards

Anthony

View solution in original post

2 Replies
AnthonyGiles
Frequent Contributor

Prashant,

If these are layers that you want to be available to all users when they open the application then you should add the layers in to the web map that drives the application:

Map and Scene—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers 

Regards

Anthony

PrashantKirpan
Occasional Contributor

Hi, 

Really appreciate your help Anthony,

I followed the steps mentioned in above link and it's resolved my issue.

Regards,

Prashant 

0 Kudos