How to automatically load the data, when the map is loaded?

521
2
Jump to solution
08-17-2017 08:09 PM
EncikPiee
New Contributor

Hello,

I need to transfer my real time map, which currently in Flex to JS. I setup and used the ArcGIS WebAppBuilder linked to my ArcGIS Server. However, when I add the data( by using add data widget) and save, I tried to launch and it seems that i need to repeat back the process (by clicking the add data widget and add links).

Can I know, what is the approach to make the data loaded automatically, when the map is loaded? I don't want the client to add the data. I just want them to view it. 

Much Thanks.

Shaffie

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Shaffie,

   The AddData widget is for adding layers at runtime, as you have noticed. If you want to have the layer always loaded in your app then you need to add it to the WebMap your app is using, or you can use a custom widget like the Local Layer widget.

Release LocalLayer v2.2 · cmndrbensisko/LocalLayer · GitHub 

View solution in original post

2 Replies
RobertScheitlin__GISP
MVP Emeritus

Shaffie,

   The AddData widget is for adding layers at runtime, as you have noticed. If you want to have the layer always loaded in your app then you need to add it to the WebMap your app is using, or you can use a custom widget like the Local Layer widget.

Release LocalLayer v2.2 · cmndrbensisko/LocalLayer · GitHub 

EncikPiee
New Contributor

Robert,

That's the widget that I'm looking for! Thank you very much.

0 Kudos