Select to view content in your preferred language

Is it possible to select differents layers in differents view with the same web map

147
2
Jump to solution
12-04-2024 06:47 AM
SIGadmin
New Contributor

Hi, 

I have a question about webmap and views in experience builder

I want to create an application with multiple view, for each view i need to show different thematic data 

Is it possible to have the same webmap in different view and choose to show different layers for each view?  Or I need to create different webmaps for each view

 

I use experience builder 1.14

 

Nicolas

0 Kudos
1 Solution

Accepted Solutions
NicoleJohnson
Regular Contributor

You can add the same data source multiple times, toggling on/off which layers you want to show, and the layers in each data source are separately filterable. Once you add a web map as a data source, click on the map in the Data tab on the left side of the builder and you'll get access to the layers and options for that data source.

As an example, I have a web map showing where chemical sampling has taken place. The samples are all housed in one feature service, but users might want to see where any kind of sampling has taken place, or where a specific chemical has been sampled. In my case, there are 7 chemicals of interest, so I've created 7 layers (all from the same source service, just filtered differently in Map Viewer*) and added the source web map to Experience Builder 7 times. In the Data tab, I then hide the layers for the irrelevant chemicals (see below). Each chemical then gets its own view.

NicoleJohnson_0-1733782291061.png

Can't show much, but basically this is to the side of a map, and users just pick which view they want to see:

NicoleJohnson_1-1733783167858.png

 

*Easier is to just filter the layers in Experience Builder, if you don't need to do anything special for each besides just filtering them differently. I needed the pop-ups for each chemical to be slightly different, so that's why I did the filtering in Map Viewer.

View solution in original post

2 Replies
abureaux
MVP Frequent Contributor

I may be wrong here, but I'm pretty sure you would need a new web map for each.

NicoleJohnson
Regular Contributor

You can add the same data source multiple times, toggling on/off which layers you want to show, and the layers in each data source are separately filterable. Once you add a web map as a data source, click on the map in the Data tab on the left side of the builder and you'll get access to the layers and options for that data source.

As an example, I have a web map showing where chemical sampling has taken place. The samples are all housed in one feature service, but users might want to see where any kind of sampling has taken place, or where a specific chemical has been sampled. In my case, there are 7 chemicals of interest, so I've created 7 layers (all from the same source service, just filtered differently in Map Viewer*) and added the source web map to Experience Builder 7 times. In the Data tab, I then hide the layers for the irrelevant chemicals (see below). Each chemical then gets its own view.

NicoleJohnson_0-1733782291061.png

Can't show much, but basically this is to the side of a map, and users just pick which view they want to see:

NicoleJohnson_1-1733783167858.png

 

*Easier is to just filter the layers in Experience Builder, if you don't need to do anything special for each besides just filtering them differently. I needed the pop-ups for each chemical to be slightly different, so that's why I did the filtering in Map Viewer.