In my application I would like to allow the user to click either a point or line road project feature and use that to set the location and open the Near Me widget. I know how to add the map trigger to Set location for Near Me and open it, so that's not the problem.
The issue I have is I only need these triggers to work on these two specific layers, but any layer in my map for which I've created a popup can be used in these triggers. I don't need or want that.
Is it possible to restrict the layers that can be clicked to activate 'Set location' for the Near Me widget Or is that behavior based on what layer has a popup configured in the web map?