• JMap.Layer.setLayerGroupsExpansion

    Set the group expansion state of multiple layer groups.

    Parameters

    Returns void

    Throws

    Error if any layer group is not found for any group id, or if any group found is not a layer group but a layer

    Example

    // Expand the layer group id -4, collapse group id -5
    JMap.Layer.setLayerGroupsExpansion([{layerGroupId: -4, open: true}, {layerGroupId: -5, open: false}])