Select to view content in your preferred language

Add Operational Layer using config file

1000
3
04-17-2017 04:41 AM
KumarHarish
Deactivated User

Hi,

Is there any way to add the operational layer(s) using config file so that they can appear in layer list. 

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

Kumar,

   I am a little confused by your question. Maybe you can go into more detail and what you have tried so so. Are you just simply wanting to have an app that loads its operational layers based on a config.json and then have a layer list that displays those layers?

0 Kudos
KumarHarish
Deactivated User

Robert,

I like to add the operational layers in my app ( created  using WAB developer eddition) to make it available to my all users. There was feature to add operational layers in config.xml file of flex viewer. Similar to that can we add to main config.json file  ?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Kumar,

  OK, so you are posting in the wrong GeoNet space then. There is a Web AppBuilder for ArcGIS‌ space specific for WAB questions (I have moved this question there). As far as adding a operational layer via the main config.json (like in the Flex Viewer), this is not an option. WAB does not allow for adding layer directly to the app from an ArcGIS Server url like the flex viewer did (without using a custom widget). If you want to add a layer at runtime then you use the OTB widget called "Add Data" if you want to add a layer to the app during configuration of the app then you add it to the AGOL/Portal webmap or use a custom widget like the Local Layer widget.

Release LocalLayer v2.2 · cmndrbensisko/LocalLayer · GitHub