the JMap layer id
the feature geometry
if layer not found, or invalid geometry, or layer has no form
// 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))
JMap.Form.openCreationDialogForLayer
Opens the form creation dialog.