Select to view content in your preferred language

Hide a layer in the Map Layers Widget in Experience Builder

9571
23
Jump to solution
02-02-2022 11:00 AM
sroberts_uuF21
Emerging Contributor

Hello! 

I am building out a simple mapping application using Experience Builder. I have a layer within my web map that I am using for arcade expressions within my popups but I don't want the layer showing up in my legend or layer list. In the past, when using map viewer classic and WAB, this process of hiding the layer in my layer list was pretty straightforward but it doesn't seem to be a functionality within Experience Builder/the new version of Map Viewer. 

I have figured out how to hide the layer from my legend but still no luck with the layer list. It seems like such a simple functionality, I would be surprised for it not to be supported yet. 

Any assistance is much appreciated!

Thanks!

Thanks1

23 Replies
JoshuaReyling
Occasional Contributor

@RhettZufelt , and @lzk222 

A possible workaround for you:

Add a 'widget controller' widget to your map, and then add the map layers widget to that.  It will show as an icon. Then you can move it to wherever.  The look is slightly different, but it gives you about the same visuals and functionality as the layers tool. 

JoshuaReyling_0-1714059670941.pnglayers tool      JoshuaReyling_1-1714059739576.pngmap layers widget

 

 

RhettZufelt
MVP Notable Contributor

Thanks, This does honor the settings and is a much nicer format.

R_

0 Kudos
JakeGalyon
Regular Contributor

I am currently using ExB in 11.3.  The ability to hide layers need to be implemented.  My example is when i have a user searching for a road using the search widget i need to map to display off a separate dissolved layer so it zooms to full extent of the road.  I also need a roads layer that is broken into segments, so the user can identify certain parts of the road to determine the address range for that particular segment.  Same goes with previously mentioned arcade expressions etc.  While ExB allows you to use different layers from different sources, you lose any functionality with zoom, select, highlight, pop up as it will only zoom, select, highlight, pop up the single web map that is tied to the layer widget.  

0 Kudos
JoshuaReyling
Occasional Contributor

@JakeGalyon , when I need this kind of functionality (i.e. a layer to search that isn't really visible and doesn't have pop-ups) I do it from the web map and than ExB.  It looks something like the following:

  • My dissolved road layer would be placed above my query layer.
  • I disable pop-ups for the dissolved layer.
  • I set the symbology to a single white line (thickness doesn't really matter).
  • In the layer properties, I set the layer blending to multiply.  This essentially makes the layer invisible, and not clickable, but the layer will be there and searchable.
  • In WxB I turn off the dissolve layer in the layers widget, and also set it as my search layer.

 

Hope that helps!

Edit: I do this in AGO, but the functionality should be about the same in Enterprise...

0 Kudos