Options
All
  • Public
  • Public/Protected
  • All
Menu

JMap.Application.Event.MapContext

Here you can manage all JMap App NG map context event listeners.

Click to see all events available: *JMap.Application.Event.MapContext.on*.

Index

Modules

Functions

Functions

activate

  • activate(listenerId: string): void
  • JMap.Application.Event.MapContext.activate

    Activates the listener.

    If the listener is already active, does nothing.

    If the listener is inactive, it will be reactivated and will be called again ...

    example
    
    // activate the listener "my-mapcontext-listener"
    JMap.Application.Event.MapContext.activate("my-mapcontext-listener")

    Parameters

    • listenerId: string

      The listener id

    Returns void

deactivate

  • deactivate(listenerId: string): void
  • JMap.Application.Event.MapContext.deactivate

    Deactivates the listener.

    If the listener id doesn't exists or if the listener is already inactive, does nothing.

    If the listener is active, it will be deactivated and will be ignored ...

    example
    
    // deactivate the listener "my-mapcontext-listener"
    JMap.Application.Event.MapContext.deactivate("my-mapcontext-listener")

    Parameters

    • listenerId: string

      The listener id

    Returns void

remove

  • remove(listenerId: string): void
  • JMap.Application.Event.MapContext.remove

    Removes the listener.

    If the listener doesn't exist, does nothing.

    Remove the listener from JMap NG Core library. The listener is deleted and never called again after that.

    example
    
    // remove the listener "my-mapcontext-listener"
    JMap.Application.Event.MapContext.remove("my-mapcontext-listener")

    Parameters

    • listenerId: string

      The listener id

    Returns void