Select to view content in your preferred language

Map-Layer widget, force one visible layer

02-08-2021 01:59 PM
by Anonymous User
Not applicable

Hi everyone, I'm currently looking for a way to customize the default Map-Layer widget from experience builder because I need to change the default behavior when the user toggle a layer visibility: 


The default widget allow the user to change the visibility of multiple layers shown at the same time, however I need it to only allow one layer at the time to be visible. So if the user set the visibility of one layer, the others should be automatically set to invisible:




User click on the "Arrondissements" layer





The widget has some options like setting the opacity, zoom to and get info of the layer which all create an event that can be easily found in their respective .ts file : goto.ts, information.ts and opacity.ts, however I was not able to find anything about the layers visibility.



Should I look somewhere else in the others default widgets for that or I am missing something? Thanks for the help!


1 Reply
New Contributor III

Did you ever figure out a solution? I am looking for a similar answer. 

0 Kudos