Start a widget on map load

251
1
02-15-2018 04:48 AM
BrettKruger
New Contributor II

Hi Guys

Could someone please assist me, I used WAB v2.1 - 2.4 and my widgets was working fine. When the map started, the code inside the widget run. This was as simple as adding to the config file: "openAtStart": true

For some reason in v2.7 this is not the case and it seems the config files has changed.

Could someone please guide me on which config and what do I need to change in this version so that my widget will run when the map loads?

Thanks in advance.

Brett

0 Kudos
1 Reply
Adri2cPérez_Beneito
Occasional Contributor

Hi!

An example using 2.7. (config.json)

{
 "uri": "widgets/Legend/Widget",
 "version": "2.7",
 "id": "widgets_Legend_Widget_18",
 "name": "Legend",
"index": 2,
"openAtStart": true
}

Cheers