• JMap.Event.Feature.on.geometryChanged

    This event is triggered when a feature geometry has been changed.

    Parameters

    • listenerId: string

      Your listener id (must be unique for all user events)

    • fn: ((params) => void)

      Your listener function

    Returns void

    Example

    // Each time a layer feature geometry has been changed, this method is processed
    JMap.Event.Feature.on.geometryChanged(
    "custom-feature-geometry-changed",
    params => console.info(
    `For layer id="${params.layerId}", feature id="${params.updatedFeature.id}" geometry has been changed`,
    params.updatedFeature
    )
    )