• JMap.Layer.setLayerGroupExpansion

    Set the layer group expansion state.

    Parameters

    • layerGroupId: JId

      The JMap layer group id

    • isExpanded: boolean

      if true will expand, if false will collapse the layer group

    Returns void

    Throws

    Error if layer group is not found, or is not a layer group but a layer

    Example

    // Expand the layer group id -4
    JMap.Layer.setLayerGroupExpansion(-4, true)