• JMap.Form.getDisplayedForm

    Returns the currently displayed form.

    Use JMap.Form.hasDisplayedForm to know if a form is currently displayed.

    Returns JForm

    Throws

    if no layer is displayed

    Example

    if (JMap.Form.hasDisplayedForm()) {
    // returns the currently displayed form
    const form = JMap.Form.getDisplayedForm()
    ...
    }