Removing "The layer, x, cannot be added to the map." popup on Web App Builder

353
1
Jump to solution
01-17-2024 09:53 AM
Labels (1)
francis_aprx
New Contributor II

Hello,

I want to preface this message by saying that I'm pretty new to customizing WAB applications, but so far most of the resources I can find have just been on editing widgets and themes within the stemapp directory in WAB.

Here's what I'm trying to do: I'm making use of hosted feature layer views on a hosted feature layer. These views have varying access: one view is in a group with an unfiltered view, while another view is in a group with a filtered view. Both views are in one map, and due to the views belonging in different groups, the access to the other view is limited.

Now, WAB has a built-in popup to warn users that "The layer, x, cannot be added to the map". I'd like to have this popup removed, and I found this resource: Solved: Disable PopUp - Layer Cannot Be Added to Map - Esri Community but I am not sure how to incorporate this to my current web app.

While I was able to edit the MapManager.js file, I'm not sure what it means to "deploy" the web app onto the web server (step 2 in the documentation).

Is there a simpler way of doing this within Web App Builder?

1 Solution

Accepted Solutions
francis_aprx
New Contributor II

For those that are finding this thread, I was able to solve my problem -- I had a fundamental misunderstanding of how Web App Builder worked.

Once I was able to customize the underlying JS of the web app, I was able to deploy it to a server (step 2 of those instructions), and the popup was gone. 👍

View solution in original post

0 Kudos
1 Reply
francis_aprx
New Contributor II

For those that are finding this thread, I was able to solve my problem -- I had a fundamental misunderstanding of how Web App Builder worked.

Once I was able to customize the underlying JS of the web app, I was able to deploy it to a server (step 2 of those instructions), and the popup was gone. 👍

0 Kudos