Add layer in postload.js

1574
1
05-09-2016 01:22 AM
NaibMaharramli
New Contributor

Hi All,

How to add layer  in postload.js  ?

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Esteemed Contributor

Naib,

  The postload.js is for loading JS classes to the WAB app after everything is done loading in WAB. When dealing with adding a layer to the map you should work with the MapManager or develop a custom widget to add layers to the map. The postload.js does not have any hooks to the map or anything you would need to add a layer to the map.

0 Kudos