• JMap.Event.Layer.on.initialSearchApplied

    This event is triggered when the initial layer search is applied (if exist).

    Parameters

    • listenerId: string

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

    • fn: ((params) => void)

      Your listener function

    Returns void

    Example

    // Each time the initial search is applied, will display a message in the console
    JMap.Event.Layer.on.initialSearchApplied(
    "custom-layer-initial-search-applied",
    params => {
    console.info(`Initial search on layer id="${params.layerId}" has been applied`, params.features)
    }
    )