• JMap.History.removePropertyChangeListener

    You can detach a property listener by its id that has been returned when it has been created with function JMap.History.onParameterChange.

    After that the listener will be destroyed.

    Parameters

    • listenerId: string

      the listener id

    Returns void

    Throws

    Error if parameterName is not a valid string or fn is not a function

    Example

    const listenerId = JMap.History.onParameterChange(...)
    // the listener is working

    // ...

    JMap.History.removePropertyChangeListener(listenerId)
    // here the listener has stopped