Disable PopUp - Layer Cannot Be Added to Map

661
2
Jump to solution
06-26-2018 01:49 PM
BrianCollins
Occasional Contributor

Wondering where/how in the WAB code I can disable the popup "The Layer, (all the layer names), cannot be added to the map". I've found where it's called from (\jimu.js\nls\main.js and jimu.js\MapManager.js) but if I simply comment out the associated function and lines then the app breaks.

Essentially I'm just trying to remove the warning so that it doesn't pop up as an annoyance to end users, particularly because the list will show over 50 layers for any given user. Just looking for a relatively low-tech solution that'll fit the bill.

Thanks...

1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Brian,

  Comment out the contents of the _showUnreachableLayersTitleMessage function (not the whole function just the functions contents).

View solution in original post

2 Replies
RobertScheitlin__GISP
MVP Emeritus

Brian,

  Comment out the contents of the _showUnreachableLayersTitleMessage function (not the whole function just the functions contents).

BrianCollins
Occasional Contributor

Thanks Robert! Worked like a charm.

0 Kudos