Returns the legend collapsed state for all layers, defaulting to false if not found.
The map identifier
A record mapping each layer path to its collapsed state
Returns the legend collapsed state for all layers, defaulting to false if not found.