• JMap.Form.openCreationDialogForLayer

    Opens the form creation dialog.

    Parameters

    • layerId: JId

      the JMap layer id

    • geometry: Geometry

      the feature geometry

    Returns Promise<JFormMetaData[]>

    Throws

    if layer not found, or invalid geometry, or layer has no form

    Example

     // opens the form creation dialog for layer id=3
    JMap.Form
    .openCreationDialogForLayer(
    3,
    {
    type: "Point",
    coordinates: [43.55843, 6.55121]
    }
    )
    .then(formsMetadata => console.log("Creation form dialog opened", formsMetadata))
    .catch(error => console.error(error))