This class will help you to add or use search bar for geocoding with a Leaflet map.

Hierarchy

  • AbstractPlaces
    • Leaflet

Constructors

Methods

  • Close the result list.

    Returns void

  • Clear created DOM elements and listeners. This could be usefull when you recreate a JawgPlace object for the same input.

    Returns void

  • The current position of the control in the map.

    Returns string

  • Returns string

    The value of the <input>.

  • This is the function used by Leaflet when you add a L.Control. Adds the control to the given map.

    Parameters

    Returns void

  • Parameters

    • value: string

      The new value for the <input>.

    Returns void

  • Open the result list with the error message. This will trigger JawgPlacesOptions.onError.

    Parameters

    • error: any

      The error to show, can be a string or an object.

    Returns void

  • Open the result list with elements from the FeatureCollection. We use the properties.label field of each features. This will trigger JawgPlacesOptions.onFeatures.

    Parameters

    Returns void

Generated using TypeDoc