Function getFormMetaDataByIdForCurrentLayer

  • JMap.Form.getAllFormsMetaDataForCurrentLayer

    Returns form metadata of the currently displayed layer and given form id.

    Parameters

    • formId: JId

      the JMap form id

    Returns JFormMetaData

    Throws

    if form not found

    Example

     // returns the form metadata of currently displayed layer and form id=2
    const formMetadata = JMap.Form.getAllFormsMetaDataForCurrentLayer(2)
    }