Options
All
  • Public
  • Public/Protected
  • All
Menu

JMap.Application.Event.Layer

Here you can manage all JMap NG App layer event listeners.

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

Index

Modules

Functions

Functions

activate

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

    Parameters

    • listenerId: string

      The listener id

    Returns void

deactivate

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

    Deactivates the listener.

    If the listener id doesn't exist 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-layer-listener"
    JMap.Application.Event.Layer.deactivate("my-layer-listener")

    Parameters

    • listenerId: string

      The listener id

    Returns void

remove

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

    Removes the listener.

    If the listener doesn't exist, does nothing.

    Removes the listener from JMap NG App. The listener is deleted and never called again after that.

    example
    
    // remove the listener "my-layer-listener"
    JMap.Application.Event.Layer.remove("my-layer-listener")

    Parameters

    • listenerId: string

      The listener id

    Returns void