I am trying to make a legend collapsable (not using a sidebar), similar to the legend on this experience.
Similarly, I would like to have a button that expands with links/view options/etc when it is hovered over or clicked on. Think like how a folder in a bookmark bar expands for more options when you click on it.
Any ideas?
Thanks,
Ricky
In the example you provided the legend appears to be a sidebar that appears from the top. You can arrange a sidebar widget from the top, bottom, left, or right.
I've been messing around with this for way too many hours today, and can't figure out a solution to replicate the behaviour in the example provided (https://experience.arcgis.com/experience/5764b91c4c8a461693487c17b8859976/page/Page-1).
How were they able to add the legend button (presumably controlling a sidebar) as a collapsible/expandable widget without blocking out the screen real estate underneath the expanded legend? When the legend is collapsed in the example, the area of the map directly underneath the legend is fully interactive, whereas when I try to implement something similar, it results in a dead zone. I've tried both AGOL and Enterprise 11.3 and can't figure out how to pull off a collapsible sidebar that doesn't block the "saved" real estate underneath where it will appear.
Appreciate any ideas!
Thanks,
Derrick
To add to my previous comment - I was able to mimic a sidebar using a button that launches a legend window with an xy offset to place it on top of the button. The window contains a second button that can be used to close the window. I'm assuming this is what was done in the CalEnviroScreen example, but would still be curious to know if there is a way to use a sidebar instead without having a dead area.
Unfortunately this sidebar workaround isn't possible in Enterprise 11.3 since offset windows are not available, but it works well in AGOL.