Expand/collapse the child by clicking the parent layer title without checking them in the layer list

162
0
05-19-2023 12:31 PM
LandryDjiokou
New Contributor

CURRENT SITUATION:

 

On Experience Builder 1.11, we are using a widget called “Map Layers”.

 

Here a screenshot of the widget in action(You see that there is parent layers with childs) :

 

LandryDjiokou_0-1684524560411.png

 

That widget is responsible to make layers or group of layers visible or not on the map.

 

We will use “Batiments et services municipaux” as an example:

LandryDjiokou_1-1684524560414.png

 

 

 

The current behavior is when we click the parent layer title,  it is checking/unchecking all the childs and display them on the map.

 

PROBLEM:

 

In the context of our project, we want to change this behavior. We want to be able to expand/collapse the child by clicking the parent layer title without checking them.

 

This is a representation of the result that we want when we click on the parent layer title:

 

LandryDjiokou_2-1684524560420.png

 

 

WHAT WE TRIED

 

The potential solution that we tried is to put in place the trigger-action so that we can implement that expand/collapse feature, but it seems that trigger-action is not called on Experience Builder 1.11. 

 

And we want to know if there’s other way to do the expand/collapse of the parent layer by the click without calling the trigger-action.

 

Any Ideas?

0 Kudos
0 Replies