Options
All
  • Public
  • Public/Protected
  • All
Menu

Module MapContext

JMap.Event.MapContext

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

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

Index

Modules

Functions

Functions

activate

  • activate(listenerId: string): void
  • JMap.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.Event.MapContext.activate("my-mapcontext-listener")

    Parameters

    • listenerId: string

      The listener id

    Returns void

deactivate

  • deactivate(listenerId: string): void
  • JMap.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.Event.MapContext.deactivate("my-mapcontext-listener")

    Parameters

    • listenerId: string

      The listener id

    Returns void

remove

  • remove(listenerId: string): void
  • JMap.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.Event.MapContext.remove("my-mapcontext-listener")

    Parameters

    • listenerId: string

      The listener id

    Returns void