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
Solved! Go to Solution.
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.
Can't show much, but basically this is to the side of a map, and users just pick which view they want to see:
*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.
I may be wrong here, but I'm pretty sure you would need a new web map for each.
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.
Can't show much, but basically this is to the side of a map, and users just pick which view they want to see:
*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.