• JMap.Layer.isSelectableById

    Returns the tree element selectable property.

    The selectable property is initialy defined on the project, and can be changed by the user through the JMap Server NG Core library.

    If this property is false, the layer's features can't be selected on the map by user interaction, or by API calls.

    If this property is true, the layer's features can be selected.

    Parameters

    • layerId: JId

      The JMap layer id

    Returns boolean

    Throws

    Error if no layer found for the id or of layer is not a vector layer

    Example

    // returns false if layer id=3 is not selectable
    JMap.Layer.isSelectableById(3)