Options
All
  • Public
  • Public/Protected
  • All
Menu

JMap.Event.Geocoding.on

Here you have all JMap NG Core geocoding events on which you can attach a listener.

Index

Functions

Functions

error

  • error(listenerId: string, fn: function): void
  • JMap.Event.Geocoding.on.error

    This event is triggered when a geocoding search has been processed, but an error occured.

    example
    
    // log a message in the console if a geocoding search error occured
    JMap.Event.Geocoding.on.error(
      "custom-geocoding-error",
      params => console.log("A geocoding search has failed", params)
    )

    Parameters

    Returns void

success

  • success(listenerId: string, fn: function): void
  • JMap.Event.Geocoding.on.success

    This event is triggered when a geocoding search has been completed.

    example
    
    // log a message in the console once the geocoding search has been completed
    JMap.Event.Geocoding.on.success(
      "custom-geocoding-success",
      params => console.log("A geocoding search has been completed", params.results)
    )

    Parameters

    Returns void